如何根据路径获取用户控件的类型

有没有办法将用户控件的路径〜/ usercontrols / MyUserControl.ascx转换为类型,如typeof(MyUserControl)?     
已邀请:
在Page类上使用LoadControl()方法:   根据指定的虚拟路径从文件加载Control对象。 MSDN
LoadControl("MyUserControl.ascx").GetType()
    

要回复问题请先登录注册