3
Reply

How to use radiobuttonlist value to show data from database

Ayu Marzuki

Ayu Marzuki

Aug 26 2014 3:15 AM
847
Asp.net C# 
in my database, i have 4 tables 
i have to use RadioButtonList and select one of the items. 
- annualleave
- emergencyleave
- medicalleave 
- maternityleave
- specialleave
 
 i need to show the table of the data in a link of another page.
please help, im out of ideas. 
 
 
<asp:RadioButtonList ID="RDB" runat="server" 
        onselectedindexchanged="RDB_SelectedIndexChanged" Selected="True">
            <asp:ListItem Value="al">annual leave</asp:ListItem>
            <asp:ListItem Value="el">emergency leave</asp:ListItem>
           <asp:ListItem Value="ml">medical leave</asp:ListItem>
            <asp:ListItem Value="mal">maternity leave</asp:ListItem>
            <asp:ListItem Value="sl">special leave</asp:ListItem>
        </asp:RadioButtonList>
 
 

Answers (3)