I have a radio button list that I need to add labels between some of the values.
I know the following will not work, but it's the best example of what I want to do in .net.
<asp:RadioButtonList ID="RadioButtonList1" runat="server" CssClass="radioList" RepeatDirection="Vertical">
<label>Regular</label>
<asp:ListItem Text="Full Time" Value="1"></asp:ListItem>
<asp:ListItem Text="Part Time" Value="2"></asp:ListItem>
<asp:ListItem Text="AM 1" Value="3"></asp:ListItem>
<asp:ListItem Text="AM 2" Value="4"></asp:ListItem>
<label>Vo-Tech</label>
<asp:ListItem Text="PM 1" Value="5"></asp:ListItem>
<asp:ListItem Text="PM 2" Value="6"></asp:ListItem>
<label>Other</label>
<asp:ListItem Text="Night" Value="7"></asp:ListItem>
</asp:RadioButtonList>
Here is a basic HTML output what I am trying to accomplish http://jsfiddle.net/cuKh7/
I know I could just use individual RadioButtons, but I want to keep it in one control. Also, I might get these values from a database later and a RadioButtonList would make that easier.
How can I accomplish the above fiddle in asp.net?
I am using .net 3.5.
Thanks!