Getting values from multiple radiobutttonlist on a single page using C#

Mar 22 2012 6:51 PM
I am writting an application using C# to flag out on work type whether it's been done onsite or offsite. I have programmaticaly desing the Datatable source. however I want to find a way of reading data from the SQl database and also being able to insert the values into database.  this my asp.net and HTML code
<td>
<asp:RadioButtonList ID="TuesdayAttendanceTypeRadioButtonList" runat="server" AutoPostBack="True">
<asp:ListItem Text="On site" Value="Onsite"></asp:ListItem>
<asp:ListItem Text="Off site" Value="Offsite"></asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:RadioButtonList ID="WednesdayAttendanceTypeRadioButtonList" runat="server" AutoPostBack="True">
<asp:ListItem Text="On site" Value="Onsite"></asp:ListItem>
<asp:ListItem Text="Off site" Value="Offsite"></asp:ListItem>
</asp:RadioButtonList>
</td>
<td><asp:RadioButtonList ID="ThursdayAttendanceTypeRadioButtonList" runat="server" AutoPostBack="True">
<asp:ListItem Text="On site" Value="Onsite"></asp:ListItem>
<asp:ListItem Text="Off site" Value="Offsite"></asp:ListItem>
</asp:RadioButtonList>
</td>













Answers (2)