By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

questions regarding validator controls

P: n/a
hi there,

i've got a form with 2 boxes, "New User" and "Existing User"

both have got input boxes with required validators, and both have got a
submit button, but whichever i press, it show the required fields even for
the other box.

is there a way around this, other than putting them on 2 separate forms?

thanks,
Paul
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Paul,

While I'm a big fan of client side validation. I think the simplest thing
for you to do here would be to just put a label on the form and validate
this yourself server side.

If you really want to get it to work client side and server side then you
could write a custom validator.

Another possibility would be to use a javascript attached to each button's
click that set's the other text box's validator to disabled.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Milsnips" <mi******@hotmail.com> wrote in message
news:u2**************@tk2msftngp13.phx.gbl...
hi there,

i've got a form with 2 boxes, "New User" and "Existing User"

both have got input boxes with required validators, and both have got a
submit button, but whichever i press, it show the required fields even for
the other box.

is there a way around this, other than putting them on 2 separate forms?

thanks,
Paul

Nov 19 '05 #2

P: n/a
See this article for the topic "Several buttons associated with their own
validators". http://aspalliance.com/699#Page4

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Milsnips" <mi******@hotmail.com> wrote in message
news:u2**************@tk2msftngp13.phx.gbl...
hi there,

i've got a form with 2 boxes, "New User" and "Existing User"

both have got input boxes with required validators, and both have got a
submit button, but whichever i press, it show the required fields even for
the other box.

is there a way around this, other than putting them on 2 separate forms?

thanks,
Paul

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.