Hey all,
I'm converting an ASP form into ASP.net. There was a radio button section in the ASP form, where each radio button was in it's own table cell.
I'd like to have similar formatting in ASP.net, with a radiobuttonlist. However I get an error when I try to load the form because the td cell is not accepted in a radiobuttonlist. Is there a way to do this without going too crazy? If I have to just put all the buttons next to each other in a cell then I'll do it.
Here's the error:
Here's a source code snipet:
thanks
I'm converting an ASP form into ASP.net. There was a radio button section in the ASP form, where each radio button was in it's own table cell.
I'd like to have similar formatting in ASP.net, with a radiobuttonlist. However I get an error when I try to load the form because the td cell is not accepted in a radiobuttonlist. Is there a way to do this without going too crazy? If I have to just put all the buttons next to each other in a cell then I'll do it.
Here's the error:
Code:
Parser Error Message: System.Web.UI.WebControls.ListItemCollection must have items of type 'System.Web.UI.WebControls.ListItem'. 'td' is of type 'System.Web.UI.HtmlControls.HtmlTableCell'.
Line 239:
Line 240: </td>
Line 241: <td width="22%">
Line 242: <p>
Line 243: <font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Here's a source code snipet:
Code:
<td>
<asp:radiobuttonlist ID="rblPrimeInt" runat="server">
<asp:listitem
id="rblDoc"
runat="server"
Value="Document Conversion Services" />
</td>
<td width="22%">
<asp:listitem
id="rblScan"
runat="server"
Value="Scanners" />
</td>
<td width="25%">
<asp:listitem
id="rblSoft"
runat="server"
Value="Software" />
</td>
<td width="25%">
<asp:listitem
id="rblOther"
runat="server"
Value="Other" />
</asp:radiobuttonlist>
</td>
thanks