开发者

How to roll out a custom membership system in asp.net mvc

I've been reading about overriding the Membership Provider and the Role Provider. I think this is what you need to do when doing Asp.net Form projects. Is t开发者_运维技巧his also the way to go with Asp.net MVC projects or there is a better way to do so?

Thanks :)


You could use the built in membership provider

http://dotnetaddict.dotnetdevelopersjournal.com/aspnet35_membership.htm

or create a custom one

How do I create a custom membership provider for ASP.NET MVC 2?

http://www.asp.net/general/videos/how-do-i-create-a-custom-membership-provider


Yes, ASP.NET MVC uses the Membership API by default. However, you can always use your own logic if you want to, but most functionality for the Membership API is in there already.

You'll need:

  • A custom MembershipProvider
  • If you use roles, a custom RoleProvider
  • If you use profiles, a custom ProfileProvider
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜