Validating User Input
There alot of great features in the Error Validator Control.
required field validation control and look in the properties
- You need to assign a control to validate
then, - theres a display property set it to dynamic
if you leave this as static you lose spacing on your form - Enable Client Side = TRUE
- the error message is good for the bottom of the page
- and I like he setfocus on error feature
- the text property is most basic but good interaction.
range validation control
these are fun for age business rules too
specify what sort of info you are setting in your range i.e. integer for an age or date for a scheduled date
compare validation control
pretty self explanatory
you can compare against a fixed value or another control… eg Confirm Password field
regular expression validation control
like an email address ..
you can select a Validation Expression property
and look for the email address format and select it…
Check out regular expressions in the VS Menu index Help look up to learn more…
custom validation control
Add an event method of ServerValidate for server side validation.
client side in javascript is optional…
Validation Summary
this is cool, I like the bulleted list of errors listed
finaly, you can also create ValidationGroups for more than 1 form on 1 page
Digg it | Save to del.icio.us | Netscape | Reddit | Stumble It!
- - - - - S P O N S O R I N G A D V E R T I S M E N T - - - - -