Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP table
Hi,

I have a radiobuttonlist composed of several listitems and i want to put each radiobutton (listitem) on a row in a way that the user have to choose only one of them.

I tried to go as such:

<pre lang="c#">
//loop
TableCell cell=new TableCell();
ListItem li=new ListItem();
radiobuttonlist.Items.Add(li);
cell.Controls.Add(li);//problem is here, it works for combobox but not for listitem
is there any way to do so?

Cheers!
Posted 18-Mar-12 12:14pm
Edited 18-Mar-12 12:44pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 280
1 Sebastiaan Meijerink 145
2 Sergey Alexandrovich Kryukov 108
3 Abhinav S 94
4 BillWoodruff 85
0 Sergey Alexandrovich Kryukov 6,558
1 OriginalGriff 6,268
2 Peter Leow 2,534
3 Abhinav S 2,344
4 Maciej Los 2,297


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 18 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100