![]() ![]() | ||
You use custom validators to perform your own validation for the data in a data-entry control. This control is supported by the CustomValidator class, and here is the inheritance hierarchy of this class:
Object Control WebControl Label BaseValidator CustomValidator
You can find the notable public properties of CustomValidator objects in Table 18.9 and their notable events in Table 18.10. Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5. This class inherits the BaseValidator class, which you can find in Tables 18.2 and 18.3, as well as the Label class; the Label class has only one non-inherited public member—the Text property, which holds the text the label displays.
Property |
Means |
---|---|
ClientValidationFunction |
Gets/sets the name of the script function you've placed in the Web page for validation. |
Event |
Means |
---|---|
ServerValidate |
Occurs when validation takes place on the server. |
![]() ![]() | ||