I have a couple of RadioButtons both with the same GroupName.
I can use a RequiredFieldVa lidator to ensure that at least one
of the RadioButtons in the group is selected? Setting ControlToValida te
to the GroupName doesn't work
<asp:RadioButto n ID="rbMale" Text="Male" runat="server" GroupName="Gend er" />
<asp:RadioButto n ID="rbFemale" Text="Female" runat="server" GroupName="Gend er" /> <br />
<asp:RequiredFi eldValidator ID="RFVGender" runat="server" ControlToValida te="Gender" ErrorMessage="G ender Should not be Empt">
</asp:RequiredFie ldValidator>
I can use a RequiredFieldVa lidator to ensure that at least one
of the RadioButtons in the group is selected? Setting ControlToValida te
to the GroupName doesn't work
<asp:RadioButto n ID="rbMale" Text="Male" runat="server" GroupName="Gend er" />
<asp:RadioButto n ID="rbFemale" Text="Female" runat="server" GroupName="Gend er" /> <br />
<asp:RequiredFi eldValidator ID="RFVGender" runat="server" ControlToValida te="Gender" ErrorMessage="G ender Should not be Empt">
</asp:RequiredFie ldValidator>
Comment