Expose a property from the master page i.e.
public bool ShowMenu
{
get
{
return myMenu.Visible;
}
set
{
myMenu.Visible = value;
}
}
On the page you utilize your master, use <@ MasterType directive to
specify the type your master is:
<@ MasterType Type="myMasterPageType" >
and then, in the page code you can use your property:
this.Master.ShowMenu = true;
Mark's approach is relatively simpler, but it won't work if the menu is
nested in a container, it's not supported by the intellisense and compiler,
and you need to know the control structure of the master page (including IDs).
hope this helps
--
Milosz
"luqman" wrote:
I have created a Login Page with Master.Master Page. The master page
contains Menus, and I want to disable those menus on Login Page, how can I
?
Best Regards,
Luqman