Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Validation Controls Issue


Message #1 by "Michael Morisoli" <Michael@M...> on Sun, 11 Mar 2001 12:24:28 -0800
Maybe I am missing something, I just ran into an interesting scenario

that I am not sure how to deal with.



I created a login form that has the basic email address and password

input boxes with various validation controls require data to be entered

and a regular expression validation.



I also have two command buttons, one to Login and one to email their

password if they have forgotten their password.



The problem I am having is with the email their password button.  By

default, if they have forgotten their password, they would leave this

input empty.  But because of the validation controls attached to the

password control, the form won't submit back to the server.



Any simple ways to resolve this?



Do I have to try and do this with a custom validation control?



Thanks for any ideas or suggestions.



Message #2 by John Pirkey <mailjohnny101@y...> on Sun, 11 Mar 2001 18:47:33 -0800 (PST)
Are you command buttons of type submit?  If so, why not just leave them be regular

buttons, then supply the OnClick parameter and point them to your email password

routine.  I'd think this would bypass the validation controls intercepting the

re-post.



I haven't test this as i've only a little with the validation controls, but with the

ability to specify a server side routine to run when a client side button is clicked

- i hardly ever use the submit button anymore.



Just a thought,



john



--- Michael Morisoli <Michael@M...> wrote:

> Maybe I am missing something, I just ran into an interesting scenario

> that I am not sure how to deal with.

> 

> I created a login form that has the basic email address and password

> input boxes with various validation controls require data to be entered

> and a regular expression validation.

> 

> I also have two command buttons, one to Login and one to email their

> password if they have forgotten their password.

> 

> The problem I am having is with the email their password button.  By

> default, if they have forgotten their password, they would leave this

> input empty.  But because of the validation controls attached to the

> password control, the form won't submit back to the server.

> 

> Any simple ways to resolve this?

> 

> Do I have to try and do this with a custom validation control? 

> 

> Thanks for any ideas or suggestions.

> 

> 

=====



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

John Pirkey 

MCSD 

John@S... 

http://www.stlvbug.org




  Return to Index