Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 29, 2012 01:28 PM by Himanshu Porwal
Jun 29, 2012 11:42 AM|LINK
I want to restrict the view of menu items based on profile.
Like certain menu items should be visible in admin profile only
Jun 29, 2012 01:04 PM|LINK
There is not a lot of information to go one here, but you need a way to determine what profile the user has. Once you have this, when the page is being built, check the users profile to see if they are an admin. If yes, then set the menu items visibility
to true if not set it to false.
Jun 29, 2012 01:10 PM|LINK
Is this for security? You can use User.IsInRole("Admin") to determine if the user is in the role and then omit the menu item.
Jun 29, 2012 01:28 PM|LINK
There are n number of ways to do this.
You can display the Menu through XML by showing the XML elements depending upon the type of user logged in.
Even you can check the Type of User and depending on that you can place the items in menu from code behind