ASP. NET school entrance-school entrance control

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.