Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have 11 check boxes within a pannel in my asp.net page, so that user select one of them i want to put a fielld validator with them. can somebody tells me which one field validator should i use and how, coz i have use custom validator, and required field validator with it but they didnt work.
Posted

1 solution

Hi,

You need to use client side validation for checkboxes.
 
Share this answer
 
Comments
saifullahiit 29-Mar-12 0:12am    
how?
Pravinjas 9-Apr-12 5:12am    
use following javascript code

var rdo1=document.getElementById('ID of your checkbox');
if(!rdo1.checked)
{
//user message
}

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