Difference between Membership Provider in ASP.NET Webforms and MVC 3

廉价感情. 提交于 2019-12-23 10:58:05

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/9028897/difference-between-membership-provider-in-asp-net-webforms-and-mvc-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!