Re: RequiredFieldValidator control

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Shiva (shiva_sm_at_online.excite.com)
Date: 10/11/04


Date: Mon, 11 Oct 2004 15:30:17 +0530

See if setting Button.CausesValidation to false helps. Remember this skips
all the validations not just required-field-validations.

HTH

"Dave" <david_dvali@hotmail.com> wrote in message
news:Ok6GTd3rEHA.3988@tk2msftngp13.phx.gbl...
Hello.

I have the web form where user can input some data in textboxes, I'm
validating user input with RequiredFieldValidator controls, then I have two
buttons "OK" and "Cancel".
Now when I press "OK" the RequiredFieldValidator works fine, but when I
press "Cancel" I don't want to validate inputs.
So how can I temporarily disable RequiredFieldValidator, because I want
press "Cancel" and handle some actions at server side?

Thank You.


Quantcast