|
-
Mar 15th, 2004, 10:35 AM
#1
Thread Starter
Addicted Member
Display dynamic in validators
Hi,
what do dynamic and static in the property Display on a validator control do?
Thanks.
-
Mar 16th, 2004, 08:32 AM
#2
PowerPoster
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
-
Mar 16th, 2004, 09:40 AM
#3
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|