Click here for Vacation Photos

Validating User Input

There alot of great features in the Error Validator Control.

required field validation control and look in the properties 

  1. You need to assign a control to validate
    then,
  2. theres a display property set it to dynamic 
    if you leave this as static you lose spacing on your form
  3. Enable Client Side = TRUE
  4. the error message is good for the bottom of the page
  5. and I like he setfocus on error feature
  6. 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





- - - - - S P O N S O R I N G     A D V E R T I S M E N T - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Post your thoughts in the Comments ...
Not signed up to share your ideas & thoughts?

It’s free and easy to collaborate!
Click Here to begin

Click Here to earn money for reviewing this post

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Leave a Reply

You must be logged in to post a comment.