You need to use a databound control, perhaps a repeater, that will be bound
to a datasource, perhaps an array, containing all instances of the user
control.
Have some code that will creat an array myControls[] based on the user
input. Then do
myRepeater.DataSource = myControls;
myRepeater.DataBind();
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin http://usableasp.net
<pa***@community.nospamwrote in message
news:e$**************@TK2MSFTNGP02.phx.gbl...
Hello all,
I have a UserControl that renders some HTML content. I now need to
dynamically load and render "n" instances of this usercontrol on a host
aspx page inside a panel control based upon user input of "n". Any ideas
how I can do this?
TIA!