Freelance Jobs

Display Property Of Validator's Control

Setting The Display Property Of Validator Controls

The Display property determines how the validation error message is rendered. This property accepts any of the following three possible values:-

1) Static
2) Dynamic
3) None

1) STATIC
By Default, the Display property has the value Static.
The validation error messagge is rendered by the validation cotnrol looks like this



2) DYNAMIC
But if, the Display property has the value Dynamic.
The validation error messagge is rendered by the validation cotnrol looks like this



Both the visibility and display attributes can be used to hide text in browser.

However, text hidden with the visibility attribute (Static) still occupies screen real estate.
On the other hand, text hidden with the display attribute (Dynamic) does not occupies screen real estate.

3) NONE
If you want to prevent the individual validation controls from displaying an error message and display the error message with a validation summary then we use None value for the display attribute

0 Comments:

Post a Comment



ONLINE JOBS