即时加载自定义服务器控件

时间:2010-01-15 15:26:31

标签: asp.net custom-controls

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");

我的类型为null。我在这里做错了什么?

1 个答案:

答案 0 :(得分:0)

查看此程序集时,对象浏览器会显示什么?它是否显示CustomControls.Nav.WebBar?