Hi,
You can define a property in master page like :
public bool TestPanelVisible
{
set
{
pnlTest.Visible = value;
}
get
{
return pnlTest.Visible;
}
}
And in content page you can set this property to true/false when you want to show/hide the panel as :
this.Master.TestPanelVisible = false;
In the content page you have to register Master using following tag:
<%@ MasterType VirtualPath="~/MasterPage.master" %>
Only then you will be able to access master page's property.
Hope this Helps :)
Regards
Gayatri