ASP.NET中基于角色的访问 [英] Role Based Access in ASP.NET

查看:88
本文介绍了ASP.NET中基于角色的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须创建一个具有基于角色的访问权限的ASP.Net项目,我想通过一个简单的工作示例来了解如何在asp.net中高效地进行操作.我用谷歌搜索,但没有找到相关的简短示例,任何链接或代码都将受到赞赏.

I have to create an ASP.Net project with role based access I want to know how to do it efficiently in asp.net with an simple working example. I had googled but not found relevant one with short example any links or codes will be appreciated.

推荐答案

Here''s[^] one way of implementing something. Note that you are very unlikely to get an example that exactly matches your requirements: you''re going to have to read a number of them and implement your won having learnt from what you''re read.


请在此处查看简单实现:
具有表单身份验证的基于角色的授权 [ MSDN:如何:在ASP.NET 2.0中使用角色管理器 [
Please have a look here for simple implementation:
Recipe: Implementing Role Based Security with ASP.NET using Windows Authentication and SQL Server [^]
Role-Based Authorization With Forms Authentication[^]
MSDN: How To: Use Role Manager in ASP.NET 2.0[^]


这篇关于ASP.NET中基于角色的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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