Search code examples
asp.net-mvcasp.net-mvc-4simplemembership

Asp.Net SimpleMemberShip Role Management?


I managed the roles before with asp.net configuraition tool. I installed Mvc 4. I created a new mvc 4 internet app. It use simpleMembershipProvider and it is not compatible with asp.net configuration tool.

Is there any simple way to manage userRoles? Should I manage them with hardcode? And Could you give more information about simpleMembershipProvider? (usage, adventages, etc...)

Thanks I lot...


Solution

  • According to this page you need to either administer roles directly in the database or write your own pages to manage roles:

    http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership

    The ASP.NET membership system is set up to support roles. However, unlike membership registration > and login, the Starter Site template does not contain pages that help you manage roles. (Managing > roles is an administrative task rather than a user task.)"