Friday, September 27, 2013

How to give validation for a checkbox in a webPart in Sharepoint 2010

Set the ControlToValidate property to the controls ClientId.


E.g.



custField.ControlToValidate = ctrlName.ClientId;





Regards, Matthew

MCPD | MCITP

My Blog

Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.



See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here: Upload and Crop User Profile Photos


No comments:

Post a Comment