compare validator

  • Thread starter Mr. SweatyFinger
  • Start date
M

Mr. SweatyFinger

comparing two textboxes for equality
email address
and
confirm email address

once the email address textbox has been filled in,
then you switch to the confirm email address textbox, but before you get a
chance to type the confirmation,

the validator fires off "both email addresses must match

this is weird.


what can be done
 
M

Mark Fitzpatrick

Don't use the client-side validation. The client-side validation will fire
whenever the focus is changed off one of the text boxes. There isn't any way
to alter this behavior as the script doesn't know which is the first time
you've given focus to a control and which isn't. If you set the client-side
validation to false it will use the server-side validation instead, which
will only check for validity when the page is in postback instead of as the
user tabs around the form.
 
M

Mr. SweatyFinger

yet if i use server-side validation only, and if my page has a file upload
or two, then that file upload stuff will be lost if the page is submitted,
and this stuff doesn;t validate, right?

the stuff will have to be re uploaded.
right?
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top