The important properties and methods common to all validation controls are as follows:
- ControlToValidate - Specifies which control to be validated
- IsValid - Boolean value stating whether control to be validated is valid or not
- ErrorMessage - Error message which will be displayed in Validation Summary
- Validate - Method to validate and set IsValid property
- Display - This specifies how the error message is shown.
Possible display options are :
- None (The validation message is never displayed.)
- Static (Space for the validation message is allocated in the page layout.)
- Dynamic (Space for the validation message is dynamically added to the page if validation fails.)
No comments:
Post a Comment