Revision: 31577
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 9, 2010 04:01 by housecor
Initial Code
<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) { e.IsValid = cbMember.Checked; }
Initial URL
Initial Description
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.
Initial Title
Require a checkbox to be checked:
Initial Tags
Initial Language
C#