Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
authorization in asp.net mvc 4
miso crkon
Jan 25 2014 8:13 PM
912
Reply
Hi,
i am a new in asp. net mvc so i would like to ask for help. I am creating a web site and using asp.net mvc 4 (empty ) where i am using my own login. I dont use internet or intranet template. Login is working perfectly but now i need to authorize some pages ( administration) for administrator only. I have spent hours now and i am lost. I use entity framework where i store user data id, email( what is also username) and password. This table has a field roles as i was thinking to use it such as if roles== admin go to the admin page. I would like to use [Authorize(Roles = "Admin")] for my site but i dont know how to implement it. Is it able to use it without using any template ( like internet or intranet which may use windows authentication and authorization)? Can you recommend me some information sources? Thanks for your help, Miso
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
why __doPostBack(clientid,""); is not doing postpack in asp.
online bus seat booking help ?