阅读背景:

如何根据登录类型从主页中隐藏特定的菜单项?

来源:互联网 

Below given code is what i am using for displaying menu items in master page. I do have a login page from where the users login to view the master page menu items. There are different type of users namely "admin,worker,Manager,etc..". I want to hide menu items from master page based on user authentication. If the user logins as "admin" then all menu items should be visible but if the user logins as "worker" then some menu items should be hidden so that they cannot view it. How to do this in a simple way without making it more compicated.Below given code is what i am using for display




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: