T
tshad
Can you use a Required Validator on a CheckBoxList?
You can on a RadioButtonList.
But when I try on my CheckBoxList I get the error:
Control 'RFPServiceTypes' referenced by the ControlToValidate property of
'ServiceTypesCheck' cannot be validated
<asp:CheckBoxList id="RFPServiceTypes" CellPadding="0" CellSpacing="0"
runat="server"/>
<asp:RequiredFieldValidator id="ServiceTypesCheck"
ControlToValidate="RFPServiceTypes"
text = "You Must Choose At Least One Service Type"
runat="server"/>
I just want to make sure that one of the checkboxes are checked.
Thanks,
Tom
You can on a RadioButtonList.
But when I try on my CheckBoxList I get the error:
Control 'RFPServiceTypes' referenced by the ControlToValidate property of
'ServiceTypesCheck' cannot be validated
<asp:CheckBoxList id="RFPServiceTypes" CellPadding="0" CellSpacing="0"
runat="server"/>
<asp:RequiredFieldValidator id="ServiceTypesCheck"
ControlToValidate="RFPServiceTypes"
text = "You Must Choose At Least One Service Type"
runat="server"/>
I just want to make sure that one of the checkboxes are checked.
Thanks,
Tom