asp.net mvc 4 - How can we create account users under super admin -


can 1 explain me how create user accounts under super admin accesses , restrictions in asp.net mvc4.

you can have @ this example in asp.net website, shows how implement membership , authentication in mvc3 applies mvc4 too.

you first need setup database membership

  1. create sql database , call want. if application uses one, can use membership too.
  2. assign , user , password database.
  3. run asp.net sql server setup wizard located in .net framework directory. wizard called aspnet_regsql.exe.

you can find more information process in this msdn article.

once have setup membership, able designate actions or controllers superadmins have access to.

[authorize(roles = "superadmin")] public class somecontroller : controller {     // controller code here } 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -