ASP.NET FormsAuthentication and membership

matieh

New Member
I can use forms authentication in ASP.NET without membership.i.e:\[code\]FormsAuthentication.RedirectFromLoginPage(usuario.UsuDs, false);//usuario.UsuDS is the textbox username in login's form\[/code\]Then i can write code like:\[code\] [Authorize(User="UserTest")] public ActionResult Criar(Usuarios usuario) { try { ... } ...}\[/code\]And it only authorize "UserTest" user in especific views.However,i would like to write:\[code\] [Authorize(Roles="Admin")] public ActionResult Criar(Usuarios usuario) { try { ... } ...}\[/code\]But i cant set roles without Membership.Any ideias to set and get roles from ASP.NET without membership?
 
Back
Top