Validation Controls

Mayfield2268

Active member
Joined
Feb 24, 2003
Messages
30
Is there a way to make a required field validator work only if a specific button is clicked.

I have two command buttons. One is search and the other is add new person. If the user selects search, I want to validate the user has entered text, but if the user selects add new person, I want the required field validator to be ignored. Any thoughts?

Thanks
 
May I know where do you put this code?

Because if you put this in Page_Load, then it is too late. Client site already done the validation before the server site Page_Load event fire.

We also face the same problem here...
 
Back
Top