Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Radio button check and on check

Hi Experts,

I have a radio button in side my gridview control.
<asp:radiobutton ID="RBShowManu" runat="server"  AutoPostBack="true" >asp:radiobutton>

When I click the radio button it checked it. When I click the next radio button it checked the other one too. What can I do to check only one radio button at a time. I am using ASP.NET and VB.NET

Thank you
Avatar of Camillia
Camillia
Flag of United States of America image

You need a "groupname"

Like this
<asp:radiobutton ID="RBShowManu" runat="server" GroupName="showmenu"  AutoPostBack="true" >asp:radiobutton>

<asp:radiobutton ID="SecondRBShowManu" runat="server" GroupName="showmenu"  AutoPostBack="true" >asp:radiobutton>
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Thank you for your reply. I changed it but still it is selecting all the radio buttons when I click. I want to select only one radio button which I click.
Post your code
ASKER CERTIFIED SOLUTION
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found the solution. Thank you.