Get selected RadioButton (C#)
<%@ Page Language="C#" %> <script runat="server"> void Page_Load() { if (Page.IsPostBack) Message.Text = "You have selected " + radCity.SelectedItem.Value; } </script> <html> <head> <title>Radio Button List Example</title> </head> <body> <asp:Label id="Message" runat="server"></asp:Label> <br /> <br /> Which city interests you? <br /> <br /> <form runat="server"> <asp:radiobuttonlist id="radCity" runat="server"> <asp:listitem id="optA" runat="server" value="A" /> <asp:listitem id="optB" runat="server" value="B" /> <asp:listitem id="optC" runat="server" value="C" /> </asp:radiobuttonlist> <br /> <input type="submit" value="Submit Query" /> </form> </body> </html>