Clientside Validation and Page.IsValid

P

Paul

Hi Guys and Girls

I am trying to disable the clientside validation (Required Fields) by
using the ValidatorEnable(id,false), which works find from the point of
view that the client side script is disabled.

The problem that I am having is that Page.IsValid is still returning
false even though I have disable the validator.

I have a column call Notes where there is a validator, this validator
is only be active if a certian checkbox is ticked, otherwise it should
not be validated.

Please help.

Many thanks
Paul Phillips
MXL.COM
 
S

Scott Allen

Hi Paul:

ASP.NET validators validate on the client and the server, so you need
to totally disable the validator on both ends. Try setting the Enabled
property to false when you do not want the validator active.
 

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

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top