Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html formatting within RadioButtonList

Status
Not open for further replies.

DoubleV

Programmer
Jan 11, 2002
358
US
RadioButtonList doesn't seem to let me have any other tags but ListItem within the tag, but what if I need to open and close <td>, insert line breaks etc?

--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
Why would it have options to close td tags or insert line breaks? They have nothing at all to do with the functionality of a RadioButtonList...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ok, may be I didn't explain exactly right. let me try again.
I need to have radio buttons within my content that is formatted in a table. so the radio buttons end up being in separate table cells.
if I just have a group of radio buttons without any html formatting in between - everything is fine. but once I put some html formatting between the radio buttons - that's when it generates errors.

basically, this works:
Code:
<asp:RadioButtonList runat="server" id="cd" name="cd">
<asp:ListItem value="CD-Rom" checked>free design solution ideas CD-ROM</asp:ListItem>
<asp:ListItem value="Nothing">no, thanks.</asp:ListItem>
</asp:RadioButtonList>

but this does not:
Code:
<asp:RadioButtonList runat="server" id="cd" name="cd">
<asp:ListItem value="CD-Rom" checked>free design solution ideas CD-ROM</asp:ListItem><br /><br />
<asp:ListItem value="Nothing">no, thanks.</asp:ListItem>
</asp:RadioButtonList>

the only difference - break tags between the two buttons.

--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
that did it. thanks!

--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top