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
 
Back
Top