如何在ASP成员资格提供程序中使用角色? [英] How to use Roles in asp membership provider?

查看:84
本文介绍了如何在ASP成员资格提供程序中使用角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ASP.net Web应用程序中使用成员资格提供程序API.我创建了一个自定义数据库,其中包含我的表以及通过运行"aspnet_regsql"创建的表.
现在,我需要为用户实施ROLES,并根据他们的角色允许/拒绝对某些页面的访问,任何机构都可以帮助我解决此问题.使用ASP成员资格提供程序对我来说还是很新的
任何建议和帮助都表示赞赏
在此先感谢

I am using using a membership provider API in my ASP.net web app. I made a custom database which contain my TABLES as well as the tables created by running "aspnet_regsql"
Now i need to implement ROLES to my users and allow/deny access to certain pages based on their roles can any body help me out with this.I am fairly new with using ASP membership provider
any suggestions and help is appreciated
thanks in advance

推荐答案

我认为您需要的所有建议都在这篇精彩的多篇文章中:

http://www.4guysfromrolla.com/articles/120705-1.aspx [ ^ ]

它有点旧(2005年),但与您要执行的操作仍然非常相关.如果您在视频方面做得更好,并且能看到它的工作原理,那么以下是有关ASP.NET安全中的角色的视频:

http://www.youtube.com/watch?v=1v7VXEv-_Cg [ ^ ]

该视频是系列的一部分.其他部分将详细介绍ASP.NET成员资格提供程序的其他区域.
I think all of the advice you need is in this wonderful multi-part article:

http://www.4guysfromrolla.com/articles/120705-1.aspx[^]

It is a bit old (2005) but it is still very relevant to what you want to do. If you do better with videos and being shown how it works, here is a video on Roles in ASP.NET security:

http://www.youtube.com/watch?v=1v7VXEv-_Cg[^]

This video is part of a series. The other parts will go into details on the other areas of the ASP.NET Membership provider.


很好的例子是:

了解ASP.NET角色和成员资格-入门教程 [ ^ ]
http://www.4guysfromrolla.com/articles/120705-1.aspx [ ^ ]
http://www.asp.net/web-forms/tutorials/security [ ^ ]
Great examples are:

Understanding ASP.NET Roles and Membership - A Beginner''s Tutorial[^]
http://www.4guysfromrolla.com/articles/120705-1.aspx[^]
http://www.asp.net/web-forms/tutorials/security[^]


将SQL成员资格与ASP.NET应用程序一起使用 [

这篇关于如何在ASP成员资格提供程序中使用角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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