Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

ASP.NET validation server control


May 12, 2021 ASP.NET


Table of contents


ASP.NET Web Forms - Validation server controls

A Validation server control is a set of ASP.NET contained in a server control that validates user input.

Validation server controls are used to validate user input.


Validation server control

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:

<asp:control_name id="some_id" runat="server" />

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.