标签: asp.net master-pages
我有一个MasterPage,但想要在tag加载特定MasterPage时跳过一个ContentPage。有可能吗?
MasterPage
tag
ContentPage
答案 0 :(得分:2)
在主人的代码绑定中:
protected void Page_Load(Object sender, EventArgs e) { ContentPageName page = this.Page as ContentPageName; myTag.Visible = page == null; }