I have a register page on my website.
I want to add a checkbox for terms of service and hook this into the process.
I created the RequiredFieldValidatorForCheckBoxLists as per Scott Mitchells post for doing so.
Then I add it in to the page. However, it does not then actually work. The error message never shows up.
This is the markup:
<asp:CheckBoxList ID="CBList" runat="server" >
<asp:ListItem Value="Terms Of Service" />
</asp:CheckBoxList>
<cc:RequiredFieldValidatorForCheckBoxLists id="reqCBList" runat="server"
ControlToValidate="CBList" ErrorMessage="You must accept the terms of service."
ValidationGroup="RegisterUserValidationGroup">*</cc:RequiredFieldValidatorForCheckBoxLists>
I don't see wh ...
Go to the complete details ...