Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Validation of multiple text boxes


Message #1 by "Carole Sullivan" <carolesullivan@e...> on Fri, 22 Nov 2002 23:57:38
Since my validation is currently done with Javascript (because I cannot 
figure out how to do multiple text box validation with controls) this 
solution does not work.

My workaround was to create the button as a link; which does not submit 
the form - something I don't want in this case anyway.



> set CancelValidation=3Dtrue on the button

-----Original Message-----
From: Carole Sullivan [mailto:carolesullivan@e...]=20
Sent: 22. november 2002 15:58
To: ASPX_Professional
Subject: [aspx_professional] Validation of multiple text boxes


I would like to validate that either textbox1 OR textbox2 (or both) have

data entered in them before the form is submitted. They cannot BOTH be=20
empty.=20

I had this working in javascript, but I need to bypass it when my LOGOFF

button is clicked.

So, does anyone know how I can bypass the javascript onSubmit validation

if LOGOFF is clicked (which is an asp:button) - OR - create a custom=20
validation routine using VB.NET?

I have searched high and low for examples, I have not found one this=20
complex.  It seems like a basic concept, the text boxes are for
searching=20
and the user can search on either field.

Thanks in advance for any help you can provide.

Carole



---
Change your mail options at http://p2p.wrox.com/manager.asp or=20
to unsubscribe send a blank email to


  Return to Index