Home All Groups Group Topic Archive Search About

ASP.NET web controls

microsoft.public.dotnet.framework.aspnet.webcontrols
Score LoadControl by type
ame - 2 Mar 2009 11:59 AM - 5 messages
Instead of loading a User Control by filename ----- Control myCtrl= LoadControl( "~/WebUserControl1.ascx"); this.PlaceHolder1.Controls.Add(myCtrl); ---- - which works- how can the User Control be loaded by class name ? I tried ---- Control myCtrl = LoadControl(typeof(WebUserControl1), new Object[]{}); this.PlaceHolder1.Controls.Add(myCtrl); ...
Next » 2 3 4 5 6 7 8 9 10