Need some help with Web User Controls (*.ascx)
I need some help with web user controls. In my site I have created a few Web User Controls (ascx). My problem is that I want to load one or more of these controls at runtime on an aspx web page. I tried many ways but I was unable to find a solution. So I began asking myself if what I want can be done. I need a solution, advice something.
Thanks in advance.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

suresh mupparaju13 reputationPosted Apr 9, 2006, 10:10 PM EDT
u can follow the this thing
control cont = " usercontrol.ascx";
placeholdercontrol.controls.add(cont);
kanchana umesh4 reputationPosted Apr 10, 2006, 8:19 PM EDT
You can follow this thing,
dim ctrl as usercontrol1
ctrl=loadcontrol("usercontrol1.ascx")
panel1.controls.add(ctrl)
The above code insert the usercontrol1 to panel1.
mupparaju suresh18 reputationPosted Apr 11, 2006, 4:04 AM EDT
usercontrol usc = "usercontrol.ascx";
placeholdercontrol.controls .add(usc);