CustomValidator control
ASP.NET CustomValidator Control
Validation server control
Definition and usage
CustomValidator control allows You write methods that handle input value validation.
Properties
Properties | Description |
---|---|
BackColor | CustomValidator The background color of the control. |
ClientValidationFunction | Specifies the name of the client script function to be executed. Note: The script must be written in a language supported by the browser, such as VBScript or JScript When using VBScript, the function must be located within the form: Sub FunctionName (source, arguments) When using JScript, the function must be located within the form: Function FunctionName (source, arguments) |
To The id of the control being verified. | |
Verify the display behavior of the control. Legal values are: |
|
Boolean value, specifies whether to enable client-side verification. | |
Boolean value, specifies whether to enable the validation control. | |
The text displayed in the ValidationSummary control when validation fails. | Note: If the Text property is not set, the text will also be displayed in the validation control. |
The foreground color of the control. | |
The unique id of the control. | |
Boolean value indicating whether the control specified by ControlToValidate passed validation. | |
Specifies the name of the server-side validation script function to be executed. | |
Specifies that the control is a server control. Must be set to "server". | |
The message displayed when verification fails. |