Creating another MasterPage
is probably the right way to go. Although you could do something like this:
Change your MasterPage
div that needs to be invisible to a Panel
.
Add a Property in the MasterPage
to toggle visibility of that Panel:
public bool PageContentInnerViewable
{
get
{
return PageContentInner.Visible;
}
set
{
PageContentInner.Visible = value;
}
}
Change the visibility in page code-behind
this.Master.PageContentViewable = false;