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