检查角色和禁用的菜单项 [英] check role & disabled menu item

查看:71
本文介绍了检查角色和禁用的菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

检查用户登录时间,然后基于角色禁用子菜单项

check user on login time then on role based disable child menu item

推荐答案

我昨天自己回答了这个问题,请参见 MSDN:演练:基于安全角色筛选站点地图节点 [ ^ ]
I answered this yesterday itself, see here[^]:
You can bind the menu items to a site-map and use the roles attribute in it for authorization.
Here this should help: MSDN: Walkthrough: Filtering Site-Map Nodes Based on Security Roles[^]


这篇关于检查角色和禁用的菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆