Hi everybody,
Im coming back to a spot of ASP.NET after a long break and ive already come up across a problem. Doh!
I need to check that the user has selected eith Male or Female from a radio button group before a form is submitted.
Code:
<asp:radioButton id="sexm" runat="server" groupname="************" /> male
<asp:radioButton id="sexf" runat="server" groupname="************" /> female
Im assuming i need to use a custom validation control to check if either of them is true. If so what do i set the controlToValidate attribute to? Is this correct or is there a built in control for this sort of thing? Is there a tutorial anybody can recommend.
Thanks for your time
Andy