How to turn off clientvalidation?

  • Thread starter Thread starter Beffmans
  • Start date Start date
B

Beffmans

Hi

I have tried:

RequiredFieldValidator1.Enabled=false;

Any ideas?

ch B
 
Beffmans said:
Hi

I have tried:

RequiredFieldValidator1.Enabled=false;

Any ideas?

ch B

when are you doing this? it would have to be in the initial page_load
 
If you are trying to turn off client-side validation, set the
EnableClientScript property to false on the validators and
ValidationSummary.

If you are trying to keep the submit button from validating but want the
vaildators to still validate as they are edited, set the button's
CausesValidation property to false. This will prevent it from calling
Page.Validate() back on the server side. So if you still want to validate on
the server side, your Click event method should call Validate().

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

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