Click here to Skip to main content
15,921,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actually i want to disable the required field validators in design page (.aspx) and i want to enable the same validators at the end of the event in .cs page is it possible
Posted

C#
for that

in design add attribute

enabled=false

and from coding

yourid.enabled=true from enabling and false for disabling
 
Share this answer
 
You can use the .enabled property of validator for this purpose..
simply put enabled="false";
in design page or in page load put validatorID.enabled ="false" and than in specific event you can enabled the validator by placing.. validatorID= "true";
 
Share this answer
 

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