Click here to Skip to main content
15,889,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dears,
I have several menus in my web application
one menu has a submenu to add a terminal
however in a specific grid i have a button and i want to open the
terminal.aspx as pop up to edit the terminal
How can i disable the menus only in edit mode for this master page?
Posted
Comments
Christian Amado 12-Aug-12 23:12pm    
May be you can add an User Control.

The best way is to create another master page, or add properties to the master page to show or hide the menus, then create a base page to derive from that has a strongly typed master page instance as a property, so you can easily call it's methods
 
Share this answer
 
in the master page that will be opened as pop up add the following code
where NavigationMenu is the id of the <asp:menu xmlns:asp="#unknown">

Menu mpMenu;

mpMenu= (Menu)Master.FindControl("NavigationMenu");
if (mpMenu!= null)
{
mpMenu.Visible = false;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900