在asp.net中分配角色 [英] roles assigning in asp.net
本文介绍了在asp.net中分配角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以将单个.aspx页面的访问规则分配给特定角色吗?
i有3个角色求职者,雇主,admin.i想要访问resumelist.aspx页面只有管理员和雇主.jobseeker无法查看此页面...如何分配规则?请给出代码.......
Can i assign access rules to a single .aspx page to a specific role?
i have 3 role jobseeker,employer,admin.i want to give access to resumelist.aspx page only admin and employer .jobseeker can't view this page ...how can i assign rule?please give the code.......
推荐答案
参考并尝试
http:// www.dotnettwitter.com/2012/10/implementing-role-based-access-control.html [ ^ ]
http://blogs.techsmith.com/inside-techsmith/dev-corner-roles-and-authori/ [ ^ ]
< a href =http://www.4guysfromrolla.com/articles/120705-1.aspx> http://www.4guysfromrolla.com/articles/120705-1.aspx [ ^ ]
希望这可以帮助你...
Refer and try
http://www.dotnettwitter.com/2012/10/implementing-role-based-access-control.html[^]
http://blogs.techsmith.com/inside-techsmith/dev-corner-roles-and-authori/[^]
http://www.4guysfromrolla.com/articles/120705-1.aspx[^]
Hope this helps you...
请参阅如何保护单个aspx页面asp.net网站 [ ^ ]
这篇关于在asp.net中分配角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文