Professional Documents
Culture Documents
Properties
Selection Mode it is used to specify the mode in
which the values can be selected from the listbox
Control.
The default selection mode is single.
Custom Validator
Control
Usage : It is used to validate the given user
input based on the requirements of an
application
Note: In order to specify the validation code it
should be written in server validate event
handler.
Note: if any client side custom validations has to
be performed then write the Java Script
function and then specify the name of that
function for the ClientValidation Function
Property of the custom validator.
Validation Summary
Control
Usage:it is used to validate other validation
controls.
POINTS TO REMEMBER ABOUT VALIDATION
SUMMARY
Validation Summary
Control- Properties
Show Summary will display the error
messages on the web form
Show message Box the error messages will be
displayed on message Box
If show message Box = True then it will be
displayed on dialogue box.
Validator
Usage:It is used to validate if the given input by
the user satisfies a specific pattern or not
Property:
Validation Expression :- It is used to specify the search
pattern
To achieve : wild card characters to be used.
Regular Expression
Validator Conti
Occurances:
{number}accepts the input if the length of the format
specifier is exactly the same
for e.g. \d{5} accepts a 5 digit numerical value.
{min,max}accepts the input if the length of the expression
is between min and max.
For e.g.: [a-z A-Z 0-9]{6,8} accepts an alpha numerical
value input of min 6 char and max of 8 char.
{min,} accepts the input if the length of the expression
is of min characters.
? accepts the input of the length zero or one char
+ accepts the input of length 1 or any.
* accepts the input of length zero or any.