如何实现一个基于角色的用户管理系统,ASP.NET MVC 4 [英] How to implement a role based user management system with ASP.NET MVC 4

查看:109
本文介绍了如何实现一个基于角色的用户管理系统,ASP.NET MVC 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我是新的ASP.NET我要实现一个基于角色的用户管理系统,一个ASP.NET MVC应用4(Visual Studio 2010中)。用户拥有这些角色中的一个或多个:管理员,经理,用户。根据该角色的用户可以访问不同的区域。有pdefined表用户$ P $。

Although I'm new to ASP.NET I have to implement a role based user management system for an ASP.NET MVC 4 application (Visual Studio 2010). Users have one or more of these roles: Admin, Manager, User. Based on the role users have access to different areas. There is a predefined table with users.

我知道,ASP.NET提供的东西来实现这一要求,但我对我得到的信息混淆。尽管有很多的信息,我无法找到一个适当的文档或博客文章。一切都开始和结束别处。似乎有许多不同,但类似的解决方案。

I know that ASP.NET provides something to implement this requirement but I am confused by the information I get. Even though there is a lot of information I can't find an adequate documentation or blog post. Everything starts and ends somewhere else. There seem to be many different but similar solutions.

对不起,问这样一个广泛的问题,但我有IM pression,我不是这个困惑的唯一的一个。一个指向好的文档或示例项目将帮助我很多东西。

Sorry for asking such a broad question but I have the impression that I am not the only one confused by this. A pointer to a good documentation or an example project would help me a lot.

推荐答案

在这个看看:

<一个href=\"http://weblogs.asp.net/jgalloway/archive/2012/08/29/simplemembership-membership-providers-universal-providers-and-the-new-asp-net-4-5-web-forms-and-asp-net-mvc-4-templates.aspx\">SimpleMembership,会员供应商,环球供应商和新的ASP.NET 4.5 Web Forms和ASP.NET MVC 4模板

据一项新功能,简化了所有的会员/角色管理。

It a new feature that simplify all the membership/role management.

这篇关于如何实现一个基于角色的用户管理系统,ASP.NET MVC 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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