RequiredFieldValidator on button click

G

Guest

Hi,

How can I make RequiredFieldValidator triggered on button click?
in my form I have a wizard that contain a search button few textboxes with
RequiredFieldValidators for each and I have set the ControlToValidate and the
ErrorMessage Properties and included a ValidationSummary, but when the
textboxes are empty and on clicking my search button the
RequiredFieldValidators are not triggered and if I enter a space character in
one of the textboxes the RequiredFieldValidator of the concerned textbox is
triggered (working)
so, how can I specify to RequiredFieldValidators to wok in my button click.


thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top