I have the following radion button in VB.NET
<asp:RadioButtonList ID="rbedit" runat="server" RepeatDirection="horizontal" >
<asp:ListItem Value="1" >Yes</asp:ListItem>
<asp:ListItem Value="0" >No</asp:ListItem>
</asp:RadioButtonList></td>
I need to figure what button the user clicked on and then set a variable with that value.
How would I go about doing this?
You can use rbedit.SelectedIndex to get which button user clicked and then set the variable accordingly.
If you want to get it client side then use following code :
to call this use :
// Get Value of RadioButtonList
var myValue=getRadVal(‘rbedit’);