I'm creating an html table in code with string concatenation by iterating over a collection of objects.
I would like to add a .NET checkbox control to one of the columns for each row.
I know how to create controls within a specific container that's dropped onto the page in design mode, but I don't know how to do with when I want to repeat the rows an unknown number of times.
I haven't figured out how to do it in the way I've described, so I've gone the route of using the Table webcontrol and using the table properties to add rows and cells.
It seems to work perfectly, it just takes longer to get it done.
Marked as answer by stevex33 on Mar 17, 2012 08:51 PM
stevex33
Member
356 Points
337 Posts
How to place dynamically created controls without a parent container
Mar 17, 2012 06:52 PM|LINK
Hi,
I'm creating an html table in code with string concatenation by iterating over a collection of objects.
I would like to add a .NET checkbox control to one of the columns for each row.
I know how to create controls within a specific container that's dropped onto the page in design mode, but I don't know how to do with when I want to repeat the rows an unknown number of times.
Does anyone know how to do this?
stevex33
Member
356 Points
337 Posts
Re: How to place dynamically created controls without a parent container
Mar 17, 2012 08:51 PM|LINK
I haven't figured out how to do it in the way I've described, so I've gone the route of using the Table webcontrol and using the table properties to add rows and cells.
It seems to work perfectly, it just takes longer to get it done.