Validation Controls
Validation Controls
By
SRIRAM. B
Validation Controls
- No initial space is reserved for the error message. If an error occurs, the
succeeding from fields are pushed to make the space for the error messages.
None
- No error message is displayed.
Page.IsValid
To determine if all input validation controls on a page are
valid.
if(Page.IsValid)
{
lblMessage.Text=”Page.Is Valid!”;
}
Required Field Validator
Ensures that the user does not skip from entry field.
Property
ControlToValidate -
Specifies the ID of the control to be validated.
Display -
Sets how the error message contained in the Text Property is displayed.
Possible Values are Static, Dynamic, None
Compare Validator
Allows for comparisons between the user's input and another
item using a comparison operator(equals, greater than, less
than,and so on)
Range Validator
Checks the user's input based upon a lower-and-upper level
range of numbers ors characters
Regular Expression Validator