What are few properties and methods that are common to all validation controls ?

The important properties and methods common to all validation controls are as follows:
  1. ControlToValidate - Specifies which control to be validated
  2. IsValid - Boolean value stating whether control to be validated is valid or not
  3. ErrorMessage - Error message which will be displayed in Validation Summary
  4. Validate - Method to validate and set IsValid property
  5. 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:

Popular Posts