G
Guest
greetings
i want to use the required field validator control to validate a checkbox.
here is the code implemented.
<asp:RequiredFieldValidator ID="rfv" ControlToValidate="chkDistiAudit"
ErrorMessage="error" runat="server" />
<asp:checkbox id="chkDistiAudit" runat="server" CssClass="objControl_left"
Width="100px" Text="Disti Audit" Checked="True"></asp:checkbox>
and below is the error return
Control 'chkDistiAudit' referenced by the ControlToValidate property of
'rfv' cannot be validated.
can somone please help me out here?.
thanks...
i want to use the required field validator control to validate a checkbox.
here is the code implemented.
<asp:RequiredFieldValidator ID="rfv" ControlToValidate="chkDistiAudit"
ErrorMessage="error" runat="server" />
<asp:checkbox id="chkDistiAudit" runat="server" CssClass="objControl_left"
Width="100px" Text="Disti Audit" Checked="True"></asp:checkbox>
and below is the error return
Control 'chkDistiAudit' referenced by the ControlToValidate property of
'rfv' cannot be validated.
can somone please help me out here?.
thanks...