May 12, 2021 ASP.NET
Validation server controls are used to validate user input.
The Validation server control is used to validate the data for the input control. If the data does not pass validation, an error message is displayed to the user.
The syntax for creating validation server controls is:
Validation server control | describe |
---|---|
CompareValidator | Compare the value of an input control with the value of another input control or a fixed value |
CustomValidator | Allows you to write a method to handle the verification of the input value |
RangeValidator | Check if the user input value is between two values |
RegularExpressionValidator | Make sure the value of the input control is specified mode |
RequiredFieldValidator | Enable input controls to be required (required) fields |
ValidationSummary | Display a report of all verification errors in the web page |
The table above is a ASP.NET validation server control in the table, and you can learn more by clicking on the link in the table.