Validation control question

  • Thread starter Thread starter Norton
  • Start date Start date
N

Norton

When using the ASP.Net validation controls, does the error message wait
until you hit submit to display or does it display as soon as you tab out of
the field? Seems like I remember it waiting until you submit but I'm
wondering if its possible to make is show when you tab out of the field.

Thanks!

Norton
 
Hi,

according to this:

ASP.NEt Validation In Depth
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp

The Client-Side Sequence
....
Code in the script library will be executed as users tab from field to
field. The validation conditions are re-evaluated when a dependent field is
changed, and the validator is made visible or invisible as appropriate.
....

But yeah they seem to work bit unreliable manner in this scenario at least
with the simple one I tested with. But you can always trigger the validation
yourself while users tabs on/off. See the article above for details about
invoking client-side validation.
 
Norton,

If you enable client-side validation and you are browsing with Internet
Explorer 4 or later, it will validate on the client as you leave the field.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
(e-mail address removed)

This post is provided "AS-IS" with no warranties and confers no rights.


--------------------
 
Back
Top