Question about required validators

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi,

With required validator controls, if the field is empty and you tab out, a
message is displayed. Fairly standard behaviour.

However, I would like to make a small change to the controls behaviour. Once
you put some data into the field, the message doesnt disappear until you tab
out.
Some people may just sit there with the cursor still in the field and wonder
what the problem is - not realising that they need to tab out before the
detection will occur.

Is there any *easy* way to change the controls behaviour so that as soon as
you enter some data the error message disappears?

If its to difficult then I probably won't bother as I don't know js very
well. I'm hoping its not going to be to tricky though

Thanks to anyone who can assist

Kindest Regards

Simon
 
easy way..nope. You could turn off client-side scripting alltogether...?

The only thing I though of off the top of my head was to add to the attributes of the control for the onChange handler. Then put the same code microsoft uses to validate the page. (call Page_ClientValidate())

Never tried that one though, and I probably wouldn't be messing with it either.
--Michael
 

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

Back
Top