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 11:14am
Edited 18-Mar-12 11:44am
v2

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



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 18 Mar 2012
Copyright © CodeProject, 1999-2014
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