如何根据c#中的角色为用户提供页面访问权限 [英] how to give page access to user according their roles in c#

查看:123
本文介绍了如何根据c#中的角色为用户提供页面访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何根据他们的角色对每个用户访问页面,以及他们是否无权访问该页面如何显示您不适用于访问此页面的消息

解决方案

请参考下面的链接提示



http://www.asp.net/web-forms/tutorials/security/roles/role-based-authorization-cs [< a href =http://www.asp.net/web-forms/tutorials/security/roles/role-based-authorization-cstarget =_ blanktitle =New Window> ^ ]

i wan to know this how to each and every user access page according their roles and if they have not authority to access that page how to show the message that "you are not applicable to access this page"

解决方案

Please refer link mention below

http://www.asp.net/web-forms/tutorials/security/roles/role-based-authorization-cs[^]


这篇关于如何根据c#中的角色为用户提供页面访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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