RadioButtonList in table?

C

Chris Ashley

I need to put a number of RadioButtons in a table as part of a
RadioButtonList but keep getting errors whenever my RadioButtonList tag
contains any table-related tags:

"System.Web.UI.WebControls.ListItemCollection must have items of type
'System.Web.UI.WebControls.ListItem'. 'table' is of type
'System.Web.UI.HtmlControls.HtmlTable'."

Is there any way around this? None of the RepeatDirection values are
flexible enough for me to get it looking the way I want. Surely I am
missing something and I won't have to code a custom control just to do
this?

Cheers,

Chris
 
C

Chris Ashley

For now I am just using standard RadioButtons and giving them the same
GroupName, then iterating the controls collection to get the selected
text value. This seems a bit messy though. If I can get this working
with the RadioButtonList that would be great as it is a lot cleaner.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top