Loading a Custom Server Control on the fly
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?
精彩评论