... loaded UserControl. When loading UserControl dynamically the developer doesn't seem to have any possibility to pass arguments to the contructor, since it is automatically the default constructor, which is executed.
Can this be true?
I have something like this...
Code:
myPage = (PageMain)this.Page.LoadControl("controls/ucMain.ascx");
... and would like to be able to force a contructor, which allows arguments. Currently, I am calling an initialization method after the construction, but would like to do it in the contruction.
Is it possible?
Thanks,
Jacob.