ASP.NET角色管理 [英] ASP.NET Role Management

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

问题描述

你好,
我正在开发一个有关票据的基于Web的应用程序,您可以详细控制属于您的票据.在项目中,应该有三种用户:
1.管理员
2.会员
3.匿名
我想问两个问题.
首先,如何在web.config文件中进行角色管理?
其次,当用户登录时;如何检测到它是谁;是管理员还是成员?
有两个具有管理员和成员帐户的不同数据库.

在此先感谢您的答复..

Hello,
I am developing a web based application about bills which you can control lots of bills in detail that belong to you.In project,there should be three kinds of user:
1.Admin
2.Member
3.Anonymous
There are two questions I want to ask you..
Firstly,How can I do the role management at web.config file ?
Secondly, when user logins ;how can I detect who it is ;Is it admin or member ?
There are two different databases which has the accounts of admins and members.

Thanks in advance for your replies..

推荐答案

此链接对您来说足够.

检查ASP.NET的成员资格,角色和配置文件 [
This link enough for you.

Examining ASP.NET''s Membership, Roles, and Profile[^]


我的朋友.解决方案您的所有问题都在成员资格中.您可以添加角色和使用它的所有要求.这里有一些有用的链接:

http://msdn.microsoft.com/en-us/library/ff648345.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx [ ^ ]

http://www.asp.net/moving-to-aspnet-20/tutorials/membership [^ ]

祝你好运!
My friend.The solution for all your question is in membership.You can add roles and all the things you asked for using it.And here are some useful links :

http://msdn.microsoft.com/en-us/library/ff648345.aspx[^]

http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx[^]

http://www.asp.net/moving-to-aspnet-20/tutorials/membership[^]

Good luck !


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

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