I'm pretty familiar with loading user controls programatically, however i would like to use the references set in the web.config rather than the <%@ Reference %> declaration on the page.
<pages>
<controls>
<add tagPrefix="uc" tagName="Menu" src="~/App_Controls/MainMenu.ascx" />...
How do i programatically load this control on my page using the web.config reference, not a path or register declaration.
Control uc = (Control)Page.LoadControl("~/usercontrol/WebUserControl1.ascx");
plhStatCounts.Controls.Add(uc);
Thanks