Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 required field validator

Author  Topic 

jhermiz

3564 Posts

Posted - 2004-10-09 : 10:13:39
I have a required field validator for a text box...
in the "Submit" button I do a :

If Isvalid blah blah blah...

Which is fine....but whenever I click on any button on that form that
required field validator shows up saying "Required". I just want it to show up when a user clicks the submit button and not buttons that do or perform other functions.

I hope I made sense :)

Good morning, BTW

MichaelP
Jedi Yak

2489 Posts

Posted - 2004-10-11 : 00:25:03
On the "non-submit" button, set CausesValidation to False.

Ok, I'm going back to vacation! See ya on the 18th!

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

jhermiz

3564 Posts

Posted - 2004-10-11 : 07:54:04
Thank You

Go to Top of Page
   

- Advertisement -