Code for AgreementCheckBox:
<asp:CheckBox ID="AgreementCheckBox" runat="server" ForeColor="Black" Text="Please agree to our terms and conditions!" />
Code for AgreementCustomValidator:
<asp:CustomValidator ID="AgreementCustomValidator" runat="server" ClientValidationFunction="AcceptTermsAndConditionsValidation" Display="Dynamic"
ErrorMessage="Please accept the terms and conditions!" ForeColor="Red"></asp:CustomValidator>
Server-Side Code:
protected void AgreementCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
{
}
Please provide a potential solution, thank you....