October 2010
Intermediate to advanced
1920 pages
73h 55m
English
CustomValidator ControlIf none of the other validation controls perform the type of validation that you need, you can always use the CustomValidator control. You can associate a custom validation function with the CustomValidator control.
The CustomValidator control has three important properties:
• ControlToValidate—
The ID of the form field being validated.
• Text—
The error message displayed when validation fails.
• ClientValidationFunction—
The name of a client-side function used to perform client-side validation.
The CustomValidator also supports one event:
• ServerValidate—
This event is raised when the CustomValidator performs validation.
You associate your custom validation function with the CustomValidator control by handling ...