webform--validation Controls

Source: Internet
Author: User

Validation control is generally used at the time of registration, is to directly encapsulate the JS code into the control, pull over directly can be used, the following describes the main usage:

1, CompareValidator: comparison verification

Common Properties: ControlToCompare the ID of thecontrol used to compare

ControlToValidate the ID of the control to validate

How the display validator is displayed (dynamic)

ErrorMessage the message displayed in ValidationSummary when the validated control is invalid

ValidationGroup the group to which the validator belongs

Visible or invisible

2. RangeValidator: Scope Verification

Common Properties: ControlToValidate the ID of the control to validate

MaximumValue Range Maximum Value

MinimumValue Range Minimum Value

How the display validator is displayed (dynamic)

ErrorMessage the message displayed in ValidationSummary when the validated control is invalid

ValidationGroup the group to which the validator belongs

Visible or invisible

3. RegularExpressionValidator Regular Expression validation

Common Properties: ControlToValidate the ID of the control to validate

validationexpression Regular expression used to determine validity

How the display validator is displayed (dynamic)

ErrorMessage the message displayed in ValidationSummary when the validated control is invalid

ValidationGroup the group to which the validator belongs

Visible or invisible

4, RequiredFieldValidator non-null verification

Common Properties: ControlToValidate the ID of the control to validate

How the display validator is displayed (dynamic)

ErrorMessage the message displayed in ValidationSummary when the validated control is invalid

ValidationGroup the group to which the validator belongs

Visible or invisible

5, ValidationSummary Error information summary

Common Properties: ValidationGroup the group to which the validator belongs

Visible or invisible

6, CustomValidator: User Custom verification

Common Properties: clientvalidationfunction client Script validation feature

ControlToValidate the ID of the control to validate

How the display validator is displayed (dynamic)

ErrorMessage the message displayed in ValidationSummary when the validated control is invalid

ValidationGroup the group to which the validator belongs

Visible or invisible

webform--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.