/ Published in: C#
NOTE:** Can't put controltovalidate property on customvalidator for this or it'll break since checkboxes are one of the few controls that .net can't validate.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<asp:CustomValidator runat="server" ID="rfvMember" OnServerValidate="cbMember_Validate" ValidateEmptyText="true" ErrorMessage="Member coverage is required." Display="None"></asp:CustomValidator> protected void cbMember_Validate(object sender, ServerValidateEventArgs e) { }