C # contains six types of authentication methods, namely:
One, non-null verification requiredfieldvalidator.
Second, comparative verification CompareValidator.
Third, scope verification RangeValidator.
Four, the regular expression validation RegularExpressionValidator.
V. Verification summary ValidationSummary.
Vi. custom Validation.
Two application tips:
1. Prevent the button from firing the validation control.
By default, the Class 3 button fires validation.
If you do not want to fire validation: give the button a causevalidation=false
2. Verify the problem with the grouping.
Set the ValidationGroup property of the input control (text box, radio, multiple selection), validation control (non-null, contrast, range, regular, custom, summary), button to the same value.
They become a group.
The first three attributes that need to be modified to use the validation space (six general authentication methods are common):
1.ErrorMessage: Error message displayed for validation failure
2.Display: How the Validator is displayed-in general dynamic display (verification failure display).
3.CotrolToValidate: The control ID to validate (for example: Verify the contents of the account in the TextBox, cotorltovalidate the textbox ID).
(not to be continued/...)
C#webfrom six verification and use method