Author: b1naryZ3n | Posted on: 9/23/2010 4:11:39 PM | Views : 421

Greetings All!
 
I have a Web Form that uses Master Pages. I only tell you this part so you understand the layers.
 
On the page, I have a web user control.  I can see public methods on that user control by simply calling  userControlName.PublicMethod();
 
However, there is a button on this page which generates additional content.  This content is based on a placeholder control and adding additional web user controls :
 
private void buildSubForms() { Control subForm; // load in the Lesson Topic Sub Form subForm = LoadControl("~/siteAssets/controls/ilasLT.ascx"); phEvalContent.Controls.Add(subForm); // load in the Reference Material Sub Form subForm = LoadControl("~/siteAssets/controls/ilasRM.ascx"); phEvalContent.Controls.Ad ...

Go to the complete details ...