Custom Validator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a CustomValidator control on my form and I want to perform the custom
validation in all the cases except if I click the "Clear" button on my form.
Is there a way to determine in the custom validator's method what button
generated the post back?
Or is there a different methon to achive what I want?

Thanks.
 
Vi said:
Hi,
I have a CustomValidator control on my form and I want to perform the custom
validation in all the cases except if I click the "Clear" button on my form.
Is there a way to determine in the custom validator's method what button
generated the post back?
Or is there a different methon to achive what I want?

Set CausesValidation property of "Clear" button to false.

Regards,
Dmitry
 

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

Back
Top