PDA

Click to See Complete Forum and Search --> : Display dynamic in validators


jas4th
Mar 15th, 2004, 09:35 AM
Hi,
what do dynamic and static in the property Display on a validator control do?
Thanks.

Lethal
Mar 16th, 2004, 07:32 AM
Dynamic - Doesn't allocate whitespace for the indicator until validation fails

Static - Does allocate whitespace for the indicator as soon as the page is rendered

davidrobin
Mar 16th, 2004, 08:40 AM
Just to explain it a little deeper

If I have a webform with a textbox and a required field validator then a range validator all in a row.
If you enter only a value that is of the wrong range, submit the page. When the page is returned, if the setting is static there will be a blank space between the textbox and the range validator.
If the setting was dynamic there will be no balnk space because the ASP.NET engine will have eliminated the required validator from the returned page. Only the textbox will show with the range validator showing an error next to it.

Static display is the default.