Control [ID] referenced by the ControlToValidate property of [ID] cannot be validated.

The above error will come when you are trying to validate checkbox with requiredfieldvalidator or any other validator by giving controltovalidate property as checkbox ID,

To Resolve this we need to validate checkbox without giving any Id as control to validate, so we need to use CustomValidator.

CustomValidator Doesn’t need any id, it needs only clientvalidationfunction or servervalidationfunction…

so the problem is solved…

Click this Link to get Solved Code

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s