Reputation: 4053
I have a MasterPage
, but want to skip one tag
that is placed on MasterPage
when particular ContentPage
is loading. Is it possible to do it?
Upvotes: 0
Views: 58
Reputation: 460078
In the master's codebind:
protected void Page_Load(Object sender, EventArgs e)
{
ContentPageName page = this.Page as ContentPageName;
myTag.Visible = page == null;
}
Upvotes: 2