I have a question why we can only add dynamic control using LoadControl. For example:
public partial class wucReportParam : System.Web.UI.UserControl
{
prote
Apparently, using LoadControl with typeof (or GetType) has the same problem as using 'new' where the child controls are not initialized. Using LoadControl with a string to the ASCX file works.
Does not initialize child controls.
LoadControl(typeof(MyReport), null);
Works!
LoadControl("Report.ascx");