Asp. NET validation controls

Source: Internet
Author: User

in ASP. Validation controls are as follows:

validation type

The controls used

Description

Mandatory field Validation

RequiredFieldValidator

Make sure that the user does not skip an entry.

Compare validation

CompareValidator

Compares user input to a constant value or to a value of another control or a specific data type (using a comparison operator that is less than, equal to, or greater than).

Scope validation

RangeValidator

Checks whether the user's input is within the specified upper and lower bounds. You can check the range of number pairs, letter pairs, and date pairs.

Regular-expression validation

RegularExpressionValidator

Checks if the item matches the pattern defined by the regular expression. This type of validation enables you to examine a sequence of characters in a predictable sequence of characters, such as an e-mail address, phone number, postal code, and so on.

Custom validation

CustomValidator

Check user input with the validation logic you write yourself. This type of validation enables you to examine values that are derived at run time.

Validation summary

ValidationSummary

Displays a summary of validation errors for all validators on the page.

Asp. NET validation controls

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.