|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP.NET web controlsmicrosoft.public.dotnet.framework.aspnet.webcontrols
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); ...
|
|||||||||||||||||||||||