Read this thread but didn\'t really answer my question and there were quite a few suggestions so not sure if they are on the right track: Master Page content filtering with res
Expose a property on the MasterPage to allow content pages to override default behavior if needed.
In the MasterPage:
private bool showFooter = true;
public bool ShowFooter { get {return showFooter;} set {showFooter = value;} }
protected void Page_Load(object sender, EventArgs e)
{
footerControl.Visible = showFooter;
}
Make sure content pages that need to access the property have the following line in the aspx:
<%@ MasterType TypeName="XXX" %>
and in the content pages code-behind:
protected void Page_Load(object sender, EventArgs e)
{
Master.ShowFooter = false;
}