<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">Hello everyone,</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden;
overflow-y: hidden;" id="_mcePaste">I have a question ...</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">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)</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">In
MVC as it should handle this?</div>
Hello everyone,
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)
Gianluigi83
Member
6 Points
15 Posts
reserved pages (for user logged)
Jan 04, 2011 03:21 PM|LINK
Hello everyone,
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
francesco ab...
All-Star
20888 Points
3277 Posts
Re: reserved pages (for 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.
Mvc Controls Toolkit | Data Moving Plug-in Videos
Gianluigi83
Member
6 Points
15 Posts
Re: reserved pages (for user logged)
Jan 04, 2011 06:01 PM|LINK
Thanks Francesco,
Have you, some trusted example (links) of how to use this?
francesco ab...
All-Star
20888 Points
3277 Posts
Re: reserved pages (for user logged)
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
Mvc Controls Toolkit | Data Moving Plug-in Videos