Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 04, 2011 10:40 PM by francesco abbruzzese
Jan 04, 2011 03:21 PM|LINK
I have a question ...
I remember that in the asp.net system, the reserved pages (for user logged) were included in the in the membership provider directory certain ... (if I'm not mistaken)
In MVC as it should handle this?
MVC reserved page user logged
Jan 04, 2011 04:20 PM|LINK
In Mvc you can use the Authorization Filter Attribute on each controller or controller method, that sepcify the roles that can access that controller.
Jan 04, 2011 06:01 PM|LINK
Have you, some trusted example (links) of how to use this?
Jan 04, 2011 10:40 PM|LINK
No need of links, it is very sinple:
[Authorize(Roles="Admin, superUser", Users="John, Mario")]
public ActionResult MyAction(......
anyway this is the link to MSDN:http://msdn.microsoft.com/en-us/library/system.web.mvc.authorizeattribute.aspx