开发者

Loading a Custom Server Control on the fly

开发者 https://www.devze.com 2022-12-16 18:11 出处:网络
System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@\"CustomControls.Nav.dll\");
System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"CustomControls.Nav.dll");
 //Namespace and assembly name are CustomControls.Nav , the class name for the control is WebBar
Type type = assembly.GetType("CustomControls.Nav.WebBar");

开发者_Python百科I am getting type as null.What am I doing wrong here?


What does Object Browser display when you look at this Assembly? Is it showing CustomControls.Nav.WebBar?

0

精彩评论

暂无评论...
验证码 换一张
取 消