I have to dynamically add user controls to a asp.net web page. I know that can be done as follows:
WebUserControl webug = (WebUserControl)Page.LoadControl("WebUserControl.ascx");
cntrlHolder.Controls.Add(webug);
In the above code cntrlHolder is a PlaceHolder/Panel. I need to add more controls of type WebUserControl into the same page. How can this be done?
The page adds only one instance of the control. Any suggestions??