How to stop RadioButtonList creating a <table>

travisowens

Centurion
Joined
Feb 11, 2004
Messages
108
Location
Rochester, NY
RESOLVED... see the following post

I have the following markup

C#:
<asp:RadioButtonList ID="DistanceBW" runat="server" CssClass="RadioGrid">
<asp:ListItem Value="20ft" Text="" />
<asp:ListItem Value="21ft to 40ft" Text="" />
<asp:ListItem Value="41ft to 60ft" Text="" />
<asp:ListItem Value="61ft to 99ft" Text="" />
<asp:ListItem Value="100ft" Text="" />
<asp:ListItem Value="NA" Text="" />
</asp:RadioButtonList>

which outputs

C#:
<table id="ctl00_Content_ImageDistance" class="RadioGrid" border="0">
<tr>
	<td><input id="ctl00_Content_ImageDistance_0" type="radio" name="ctl00$Content$ImageDistance" value="20ft" /></td>
</tr><tr>
	<td><input id="ctl00_Content_ImageDistance_1" type="radio" name="ctl00$Content$ImageDistance" value="21ft to 40ft" /></td>
</tr><tr>
	<td><input id="ctl00_Content_ImageDistance_2" type="radio" name="ctl00$Content$ImageDistance" value="41ft to 60ft" /></td>
</tr><tr>
	<td><input id="ctl00_Content_ImageDistance_3" type="radio" name="ctl00$Content$ImageDistance" value="61ft to 99ft" /></td>
</tr><tr>
	<td><input id="ctl00_Content_ImageDistance_4" type="radio" name="ctl00$Content$ImageDistance" value="100ft" /></td>
</tr><tr>
	<td><input id="ctl00_Content_ImageDistance_5" type="radio" name="ctl00$Content$ImageDistance" value="NA" /></td>
</tr>
</table>

I want all these checkboxes next to each other (it's going to be part of a table, made up in CSS) but how can I prevent ASP.Net from putting these in seperate <tr>'s?
 
Last edited:
Back
Top