Link to home
Start Free TrialLog in
Avatar of sami ullah
sami ullah

asked on

show less info in menu bar for user

check user name in session if admin is login more info in menu bar and if user is login less info in menu bar show to user
ASKER CERTIFIED SOLUTION
Avatar of Vishal Tankariya
Vishal Tankariya
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
var menu = Page.Master.FindControl("Menu1") as Menu;
if(Session["UserName"] != "Admin")
{
 Menu1.Items.Remove(Menu1.FindItem("INSPECTION"));
 Menu1.Items.Remove(Menu1.FindItem("WORK"));
}
From session value to show hide panel to solve the issue.