How to turn off clientvalidation?

C

Curt_C [MVP]

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
 
P

Peter Blum

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top