关于分配角色 [英] Regarding Assign Roles

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

问题描述

我要创建一个超级管理员和一个admin. SuperAdmin可以编辑项目中的任何内容,而admin只能进行一些编辑.所以我要做的是.我正在使用表单身份验证,并且不想使用Windows管理.请回复

I want to make a superadmin and admin . SuperAdmin can edit anything in project while the admin can do some editings only . So What i have to do for that . I am using form Authentication and dont want to to use the Windows Administration . Please reply

推荐答案

看看ASP.Net的成员资格和角色,这是自定义构建的,可以解决您想做的事情

http ://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx [ ^ ]

使用Membership API,您可以创建许多角色并将用户分配给这些角色.
Have a look into ASP.Net membership and roles, this is custom built and solves exactly what you want to do

http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx[^]

Using the Membership API, you could create a number of roles and assign users into those roles.


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

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