Loginview control asp.net mvc

Posted by vikitor on Stack Overflow See other posts from Stack Overflow or by vikitor
Published on 2010-05-20T11:21:32Z Indexed on 2010/05/20 11:40 UTC
Read the original article Hit count: 420

Filed under:

Hello all,

I have been searching and haven't got luck, I got a tutorial to use the loginview control in order to display or hide parts of the views to different user roles in my application. The thing is that the tutorial I've found is for ASP.NET and I've been told by one of my colleages that it is the same framework for ASP.NET MVC but the way to use it is different. Have you got any good tutorial to recommend?

EDIT: I've got all my application set up, and the login and the roles already configured (via asp.net membership provider). This is all already running. The thing is that if I have role a and role b I want role a to be able to actually see the links to the actions it is authorized to work with, and not b for example. If in the Index of my application I've got a link to "Edit" and only the role a can access to the action, then it will be displayed just for logged in users that belong to role a, and not to those who belong to role b

Thank you, Vikitor

© Stack Overflow or respective owner

Related posts about asp.net-mvc