Custom Validators not working on checkboxlist

Posted by Emil under ASP.NET on 7/27/2011 | Points: 10 | Views : 1938 | Status : [Member] | Replies : 1
When i applied the custom Validator control to checkboxlist and assigned controltovalidate propert with id of checkboxlist
It is showing the error control referenced by validator cannot be validated


Posted by: Kshah on: 7/27/2011 [Member] Starter | Points: 25

Hello Emil,
Keep the controltoValidate property blank for Custom validator.It'll work
reason being that at run time dynamically ID's are generated for checkboxlist so custom validator cannot figure out which Id should it refer.

Emil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response