How to implement a role based user management system with ASP.NET MVC 4

僤鯓⒐⒋嵵緔 提交于 2019-12-05 23:44:13

Take a look at this:

SimpleMembership, Membership Providers, Universal Providers and the new ASP.NET 4.5 Web Forms and ASP.NET MVC 4 templates

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

Here is an article for ASP.NET MVC 3 (Razor) that covers membership and roles. I don't believe things changed greatly between MVC 3 and 4 with regard to the builit-in membership provider - http://www.c-sharpcorner.com/uploadfile/b19d5a/membership-and-authorization-in-Asp-Net-mvc-3-razor/

Additionally, here is the portion of Microsoft's Music Store tutorial that deals with membership - http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-7

Hope they help.

You can consider to use a web application framework. See http://www.aspnetboilerplate.com/

Also, See http://www.aspnetzero.com/ it has ready user, role.. management pages and can be good start point for new applications.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!