Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a few validators on a page and few radio buttons.

WHen user selects 1st radio button, i am disabling the validations by using
ValidatorEnable(myVal, false); myval is clientid of the validator.

When user clicks 2nd radio button, i need to enable he validation, and fo rthat i am using ValidatorEnable(myVal, true);

The problem with ValidatorEnable(myVal, true); is that as soon as user clicks 2nd radio button, all the validator messages show up in red, which is not right.

How can i fire/enable these validators only if user hasn't selected/entered the right value?

Have been looking, but no luck so far.
Posted

1 solution

Use custom validator in such a case...
 
Share this answer
 
Comments
cproject123 18-May-11 9:37am    
How? do u have any example?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900