Instead of using groups of radiobuttons, why not use
RadioButtonList
?
<asp:RadioButtonList ID="rBtnList1" runat="server"
RepeatColumns = "1"
RepeatDirection="Vertical"
RepeatLayout="Table">
<asp:ListItem Text="Text1" Value="Value1"></asp:ListItem>
<asp:ListItem Text="Text2" Value="Value2"></asp:ListItem>
<asp:ListItem Text="Text3" Value="Value3"></asp:ListItem>
<asp:ListItem Text="Text4" Value="Value4"></asp:ListItem>
</asp:RadioButtonList>
You can access the selected value by
rBtnList1.SelectedValue
.
RepeatColumns indicate how many colums are being created for the table and etc. There are properties for setting the appearance of the output table. By making proper use of this control, you no longer have to put a style attribute on every radio button, like what you have done in every td of your table. Looks cleaner if it were implemented this way.