从内容页访问母版页和嵌套母版页属性
如何从内容页访问母版页属性和嵌套母版页属性?我目前在内容页中使用 <%@ MasterType 来访问嵌套母版页的属性,但我认为我不能简单地指定另一个母版类型来访问母版页。或者,我可以吗? (IIS6、.Net4、c#)。
谢谢, 乔恩
How do I access master page properties and a nested master page properties from a content page? I currently use <%@ MasterType in my content page to access properties of the nested master page, but I don't think I can simply specify another mastertype to get to the master page. Or, can I? (IIS6, .Net4, c#).
Thanks,
Jon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过 Page.Master< 访问母版页/a> 属性
重要: (MSDN)
You can access a master page by Page.Master property
Important: (MSDN)