hi
I put some checkbox in page and one RequiredFieldValidator in page below are codes:
<div id="AMOL11">
<div id="chadM"> <label runat="server" class="chadML"> <input type="checkbox" id="ChAllTra" runat="server"/></label></div>
<div id="chadM1"> <label runat="server" class="chadM1L"> <input type="checkbox" id="ChRE" runat="server"/></label></div>
<div id="chadM2"> <label runat="server" class="chadM2L"> <input type="checkbox" id="ChR" runat="server"/></label></div>
<div id="chadM3"> <label runat="server" class="chadM3L"> <input type="checkbox" id="ChF" runat="server"/></label></div>
<div id="chadM4"> <label runat="server" class="chadM3L"> <input type="checkbox" id="ChPF" runat="server"/></label></div>
<div id="chadM5"> <label runat="server" class="chadM3L"> <input type="checkbox" id="ChMo" runat="server"/></label></div>
</div>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
here I want if users doesn't select any of checkboxs it show error:
"Please select one check box "
how I can do it?
best regards
neda