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