The user input data is validated by the ASP.NET validation controls to ensure that are useless data which are unauthenticated, or contradictory should not get stored.
ASP.NET provides the following validation controls:
RequiredFieldValidator Control
The RequiredFieldValidator control ensures that the required field is not empty. It is generally tied to a text box to force input into the text box.
RangeValidator Control
The input values which falls inside a predetermined range is verified by the RangeValidator control.
CompareValidator Control
For comparing a value in one control or in another control with a fixed value we use CompareValidator control.
RegularExpressionValidator
To validation of the input text by matching against a pattern of a regular expression is allowed by RegularExpressionValidator.
The regular expression is set in the ValidationExpression property.
- RequiredFieldValidator
- RangeValidator
- CompareValidator
- RegularExpressionValidator
- CustomValidator
- ValidationSummary
0 Comment(s)