ASP. NET provides the following five school administrators controls:
Requirefieldvalidator: Make sure that you have imported the data into a control.
Comparevalidator: Compare the number of data records imported into and a constant number (one value of another control or the value of a dynamic number)
Rangvalidator, it is also in the specified external region.
Regularexpressionvalidator: you can use this control to check whether the data imported using the rule matches a specified regular expression, mode, or format (such as a telephone fax)
Customvalidator: define your own custom controls and connect them to the controls you want to renew.
Use the requirefieldvalidator control:
1. Add the requirefieldvalidator control to the window and place it in the place where the operation is to be displayed, such as the Front and bottom of the control.
2. settings:
Controltovalidate: Set the control to be verified
Errormessage: indicates the error message. (when text encoding is not set, the error message value is displayed)
Use the comparevalidator control:
1. Add the comparevalidator control to the window and place it in the place where the cursor is to be displayed, such as the Front and bottom of the control.
2. settings:
Controltovalidate: Set the control to be verified
Errormessage: zookeeper prompt message
Maximumvalue: Maximum Value
Minimumvalue: Minimum value
Type: the type of the input value of struct.
Other features of the school administrator control:
Enableclientscrip: When the value is false, the client-end school is forbidden. The system checks all the queries on the server.
Servervalidate event of the customvalidator control: this event is used to initialize row verification on the server, even when enablecientscript is set to true.
Validationsummary control:
It is used to display the errormessage value of all the zookeeper controls in the Web window.
Showsummary: indicates all zookeeper information.
Showmessagebox: Use a message box to display zookeeper Information