MVC 4的ActionResult JsonRegister [英] MVC 4 ActionResult JsonRegister

查看:154
本文介绍了MVC 4的ActionResult JsonRegister的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MVC 4自带的AccountControllers 2寄存器方式:

MVC 4 comes with 2 register methods in the AccountControllers:


  • 公众的ActionResult JsonRegister(RegisterModel模型)

  • 公众的ActionResult寄存器(RegisterModel模型)

然而,没有办法指定在视图中使用哪一个。

Yet there is no way to specify which one to use in the view.

为什么你需要2种方法来注册在同一个控制器的用户?

推荐答案

这在Beta附带的模板会调用正确的方法取决于您是否使用一个模式对话框或直接页面进行登录。该引用是很难$ C $光盘组成登记经验的意见和谐音。说了这么多,请注意,我们将通过时间RTM船被去除模板的Ajax的baased登录和注册工作流程。

The templates that ship in the Beta will call the right method depending on whether you are using a modal dialog or the direct page to log in. That reference is hardcoded in the views and partials that make up the registration experience. Having said that, note that we will be removing the Ajax-baased login and registration workflows from the templates by the time RTM ships.

这篇关于MVC 4的ActionResult JsonRegister的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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