在ASP.NET WebForms和MVC 3成员资格提供程序之间的差异 [英] Difference between Membership Provider in ASP.NET Webforms and MVC 3

本文介绍了在ASP.NET WebForms和MVC 3成员资格提供程序之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在Web表单的成员资格提供程序和成员资格提供MVC 3之间的工作有区别吗?

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

推荐答案

没有。


  • 的成员资格提供程序是 System.Web.Security 命名空间的一部分

  • Web表单是的System.Web.UI 命名空间

  • MVC是 System.Web.Mvc 命名空间

  • 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

因此​​,不存在依赖关系。换句话说,你会做,你会在WebForms的应用程序相同的成员,在一个MVC应用程序相同的会员对象的调用。

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.

这篇关于在ASP.NET WebForms和MVC 3成员资格提供程序之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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