webforms validate radio buttons code example
Example: webforms validate radio buttons
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem>north</asp:ListItem>
<asp:ListItem>west</asp:ListItem>
</asp:RadioButtonList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="RadioButtonList1" ErrorMessage="RequiredFieldValidator">
</asp:RequiredFieldValidator>