john kanyora

john kanyora

  • NA
  • 242
  • 44.6k

retrieve data from database table using radiobutton

Feb 22 2018 6:07 AM
Hi, am trying to get data from a database table using radiobutton.kindly help on a way to implement it.
below is my code with the radiobutton..i need help with the code behind on how to implement the radiobutton to retrieve the data and also display it on a gridview.
 
<asp:RadioButtonList ID="Radiobuttonlist1" runat="server">
<asp:ListItem Text="Patients" Value="Patients"></asp:ListItem>
<asp:ListItem Text="Suppliers" Value="Suppliers"></asp:ListItem>
<asp:ListItem Text="Employees" Value="Employees"></asp:ListItem>
</asp:RadioButtonList>

<asp:GridView ID="GridView1" runat="server" /> 
 

Answers (9)