Validation control question

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
 
T

Teemu Keiski

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.
 
J

Jim Cheshire [MSFT]

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.


--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top