阅读背景:

从不属于ASP.NET内容页面的类访问母版页的属性

来源:互联网 

So I'm wiring up my first MasterPage, and everything is working great except for one thing. This is a legacy app, and I have an old BasePage class that all my content pages inherit. It inherits from System.Web.UI.Page, but has no content itself (no .aspx file). It runs a bunch of the user authentication/role granting menu building. I want to keep this functionality but use it to set controls on my MasterPage to build out the menus. I cannot for the life of me figure out how to reference the MasterPage properties without a MasterType declaration in a content page. So I'm wiring up my first MasterPage, and every




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: