How to insert value of radiobutton in to database

Apr 25 2009 5:24 AM

Hello experts,

     my problem is that.I want to insert value of RadioButton.But there are Five RadioButton in one row and insert value of checked radiobutton.But there is no Text in RadioButton.

There is design code. Plz Give Solution

Thanks....... 

<tr><td>Communication & Education</td>

<td class="gtc" ><asp:RadioButton ID="rb1" runat="server" GroupName="Communication"/><div class="confirmit-hidden"><asp:Label ID="Label1" runat="server" Text="1"></asp:Label></div></td>

<td class="gtc" ><asp:RadioButton ID="rb2" runat="server" GroupName="Communication" /><div class="confirmit-hidden"><asp:Label ID="Label2" runat="server" Text="2"></asp:Label></div></td>

<td class="gtc" ><asp:RadioButton ID="rb3" runat="server" GroupName="Communication" /><div class="confirmit-hidden"><asp:Label ID="Label3" runat="server" Text="3"></asp:Label></div></td>

<td class="gtc" ><asp:RadioButton ID="rb4" runat="server" GroupName="Communication" /><div class="confirmit-hidden"><asp:Label ID="Label4" runat="server" Text="4"></asp:Label></div></td>

<td class="gtc" ><asp:RadioButton ID="rb5" runat="server" GroupName="Communication" /><div class="confirmit-hidden"><asp:Label ID="Label5" runat="server" Text="5"></asp:Label></div></td>

</tr>

<tr><td >Customer Service </td>

<td class="gtc"><asp:RadioButton ID="rb6" runat="server" GroupName="Customer" /><div class="confirmit-hidden"><asp:Label ID="Label6" runat="server" Text="1"></asp:Label></div></td>

<td class="gtc"><asp:RadioButton ID="rb7" runat="server" GroupName="Customer" /><div class="confirmit-hidden"><label for="rb7">2</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb8" runat="server" GroupName="Customer" /><div class="confirmit-hidden"><label for="rb8">3</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb9" runat="server" GroupName="Customer" /><div class="confirmit-hidden"><label for="rb9">4</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb10" runat="server" GroupName="Customer" /><div class="confirmit-hidden"><label for="rb10">5</label></div></td>

</tr>

<tr><td >Record keeping</td>

<td class="gtc"><asp:RadioButton ID="rb11" runat="server" GroupName="Record" /><div class="confirmit-hidden"><asp:Label ID="Label7" runat="server" Text="1"></asp:Label></div></td>

<td class="gtc"><asp:RadioButton ID="rb12" runat="server" GroupName="Record" /><div class="confirmit-hidden"><label for="rb12">2</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb13" runat="server" GroupName="Record" /><div class="confirmit-hidden"><label for="rb13">3</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb14" runat="server" GroupName="Record" /><div class="confirmit-hidden"><label for="rb14">4</label></div></td>

<td class="gtc"><asp:RadioButton ID="rb15" runat="server" GroupName="Record" /><div class="confirmit-hidden"><label for="rb15">5</label></div></td>

</tr>


Answers (1)