I'm using old fashioned ASP.NET validation (ugh) for a checkout process. I have a checkbox -"I'll call with my credit card details"-. If checked I need to disable the required field validator and cc validator for the credit card number both on the client and on the Postback.
How do it do it?
You can disable the validators server-side:
You can disable the validators client-side (in javascript):
Where validatorId is the clientID of the validator to be disabled. See this page for a complete example.
If you're disabling server side then you can do
in your CheckChangedEvent this is more helpful if you have a lot of validators and need to disable them all.