自定义会员框架 [英] Custom Membership Framework

查看:70
本文介绍了自定义会员框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

有什么方法可以在不使用ASP.NET成员资格框架的情况下管理用户信息(用户名,密码和角色).我的意思是(使用aspnet_regsql)

Hi guys.

Is there any way I can manage user information (Username, Password & Roles) without using the ASP.NET Membership framework. I mean (using aspnet_regsql)

推荐答案

是的,您可以创建自己的提供程序实现.

显然,您将需要创建一个数据库来管理用户\角色\用户->角色成员信息.然后,您需要创建提供程序的实现以使用您的特定数据库设置.

如果您使用google,会有很多相关文章,这是一个演练

http://www.shiningstar.net/aspnet_articles/customprovider/CustomProvider.aspx [ ^ ]

...以及有关MSDN的文章

http://msdn.microsoft.com/en-us/library/ms366730.aspx [ ^ ]
Yes, you can create your own implementation of the providers.

You''ll obviously need to create a database to manage the users \ role\ user->role membership information. You''ll then need to create implementations of the providers to use your particular database setup.

There are various articles on this if you google, here''s a walkthrough

http://www.shiningstar.net/aspnet_articles/customprovider/CustomProvider.aspx[^]

...and an article on MSDN

http://msdn.microsoft.com/en-us/library/ms366730.aspx[^]


这篇关于自定义会员框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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