如何实现基于用户和角色的安全性ASP.Net Web Forms 4.5 [英] How to Implement Security based on Users and Roles ASP.Net Web Forms 4.5

查看:54
本文介绍了如何实现基于用户和角色的安全性ASP.Net Web Forms 4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有



我想限制用户的一些页面,并允许他们向特定用户和部分页面授权给管理员。使用ASP.Net Web表单如何在用户和角色的基础上实现安全性。请指导我一个简单而简单的步骤,以便我可以在我的网络应用程序上实现。





Regars

Dear All

I want to restrict some of my pages from the users and allow them to specific users and some of pages authorize to Admin only. Using ASP.Net web forms how to implement the security on the bases of users and roles. Please guide me in a simple and easy steps so that I could implement on my web application.


Regars

推荐答案

好了,从这里开始: https://msdn.microsoft.com/en-us/library/shz8h065%28v=vs.110%29.aspx [ ^ ]。



此CodeProject文章也很有用:使用表单身份验证的基于角色的安全性 [ ^ ]。



-SA
Well, start here: https://msdn.microsoft.com/en-us/library/shz8h065%28v=vs.110%29.aspx[^].

This CodeProject article can also be useful: Role-based Security with Forms Authentication[^].

—SA


这篇关于如何实现基于用户和角色的安全性ASP.Net Web Forms 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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