如何在我的ASP.NET MVC 4基本模板网站中添加角色和管理员权限? [英] How to add role and admin access in my ASP.NET MVC 4 Basic Template Website?

查看:98
本文介绍了如何在我的ASP.NET MVC 4基本模板网站中添加角色和管理员权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有基本模板的ASP.NET MVC 4项目。注册和登录表单已完成,但我不知道如何在我的应用程序中创建角色。请帮助我!

I have a ASP.NET MVC 4 project with Basic Template. Registration and Login form is completed, but I don't know how to create roles in my application. Please help me!

推荐答案

试试这个链接

http://www.asp.net/web-forms/视频/ how-do-i / how-do-do-do-roles-to-segment-in-an-aspnet-web-site [ ^ ]

http://www.tsjensen.com/blog/post/2010/10/16/ASPNET+MVC+Custom+Authorize+Attribute+With+Roles+Parser.aspx [ ^ ]

希望这有帮助
Try this links
http://www.asp.net/web-forms/videos/how-do-i/how-do-i-use-roles-to-segment-functionality-in-an-aspnet-web-site[^]
http://www.tsjensen.com/blog/post/2010/10/16/ASPNET+MVC+Custom+Authorize+Attribute+With+Roles+Parser.aspx[^]
Hope this helps


这篇关于如何在我的ASP.NET MVC 4基本模板网站中添加角色和管理员权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆