Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying SharePoint Designer Tutorial: Working with SharePoint Websites
  • Table Of Contents Toc
SharePoint Designer Tutorial: Working with SharePoint Websites

SharePoint Designer Tutorial: Working with SharePoint Websites

By : Mike Poole
2.5 (2)
close
close
SharePoint Designer Tutorial: Working with SharePoint Websites

SharePoint Designer Tutorial: Working with SharePoint Websites

2.5 (2)
By: Mike Poole

Overview of this book

Table of Contents (17 chapters)
close
close
SharePoint Designer Tutorial
Credits
About the Author
About the Reviewer
Preface
1
Index

Validating Our Forms


We can add validation controls to our form that will check the information input by the user. If they input an incorrect value, then an error message will be displayed.

There are several different types of validation controls. Each performs a specific type of validation when the form is updated.

We will add a RangeValidator to our form to check that the birthday we have selected is credible:

  1. Click and drag a RangeValidator control onto our form.

  2. Right-click on the validation control and select Properties from the shortcut menu.

  3. Set the ControlToValidate to txtBirthday.

  4. Change the Type from String to Date.

  5. Set the MinimumValue to 1/1/1880.

  6. Set the MaximumValue to 1/1/2009.

  7. Set the ErrorMessage to Please select a credible birthday.

If we return to our birthday page in our web browser, we see that if we enter a spurious date such as 1/1/1850 and then press Enter to cause a postback, the validation kicks in and we are greeted with an error message.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
SharePoint Designer Tutorial: Working with SharePoint Websites
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon