Today while figuring out how to do something for a project, the solution that was chosen was to dynamically load a user control to the page.
After getting null reference errors and the control completely not rendered on the page, I found the solution to be this.
Control FeaturedProductUserControl = LoadControl(“FeaturedProduct.ascx”);
Controls.Add(FeaturedProductUserControl);
There is an article that I came [...]
Filed under: Visual Studio .Net & Ajax.Net | Leave a Comment »