in ASP. Validation controls are as follows:
validation type |
The controls used |
Description |
Mandatory field Validation |
RequiredFieldValidator |
Make sure that the user does not skip an entry. |
Compare validation |
CompareValidator |
Compares user input to a constant value or to a value of another control or a specific data type (using a comparison operator that is less than, equal to, or greater than). |
Scope validation |
RangeValidator |
Checks whether the user's input is within the specified upper and lower bounds. You can check the range of number pairs, letter pairs, and date pairs. |
Regular-expression validation |
RegularExpressionValidator |
Checks if the item matches the pattern defined by the regular expression. This type of validation enables you to examine a sequence of characters in a predictable sequence of characters, such as an e-mail address, phone number, postal code, and so on. |
Custom validation |
CustomValidator |
Check user input with the validation logic you write yourself. This type of validation enables you to examine values that are derived at run time. |
Validation summary |
ValidationSummary |
Displays a summary of validation errors for all validators on the page. |
Asp. NET validation controls