我在我的应用程序中有多个母版页。我做了一个自定义类型和inharit这一切母版页:错误无法加载类型'MyMaster'?
public class MyMaster : System.Web.UI.MasterPage
{
private int myno;
public int MyNo
{
get { return 50; }
set { myno = value; }
}
}
基本上myno常见于所有母版页和母版页将在内容网页上的变化。要添加这个属性我在内容页中加入:
<%@ MasterType TypeName=MyMaster %>
运行页面上我得到了对象错误。请引导我。
感谢