Difference between Membership Provider in ASP.NET

2019-06-22 16:33发布

Is there a difference in the working between the Membership Provider of Webforms and Membership Provider of MVC 3?

2条回答
Fickle 薄情
2楼-- · 2019-06-22 16:54

No, MVC is just a design pattern that Microsoft has utilized. So, you can use membership in all ASP.Net projects.

This is evident even in the namespace: System.Web.Security

查看更多
成全新的幸福
3楼-- · 2019-06-22 16:59

No.

  • The membership provider is part of the System.Web.Security namespace
  • Webforms is the System.Web.UI namespace
  • MVC is the System.Web.Mvc namespace

Therefore, there are no dependencies. In other words, you'll be making the same membership calls with the same membership objects in an MVC application as you would in a WebForms application.

查看更多
登录 后发表回答