ASP.NET MVC 3 - Ajax.BeginForm VS jQuery的表格插件 [英] ASP.NET MVC 3 - Ajax.BeginForm vs jQuery Form Plugin

查看:178
本文介绍了ASP.NET MVC 3 - Ajax.BeginForm VS jQuery的表格插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始一个新的ASP.NET MVC 3项目,我要实现只能通过默认读一些画面,但允许用户通过单击编辑按钮来编辑信息。我想这些画面被AJAXed。我有previously使用 jQuery的形式插件,以实现对一个ASP.NET MVC 2项目类似的画面。

I'm starting a new ASP.NET MVC 3 project and am going to implement some screens that are read only by default but allow the user to edit information by clicking on an Edit button. I want these screens to be AJAXed. I have previously used the jQuery Form Plugin to implement similar screens on an ASP.NET MVC 2 project.

我刚刚发现 Ajax.BeginForm的存在(),想知道我是否应该使用,因为它是内置的,而不是使用jQuery表格插件。我做的两种技术之间的差异谷歌搜索,但没有找到任何东西。

I've just discovered the existence of Ajax.BeginForm() and was wondering whether I should use that since it is built in, instead of using the jQuery Form Plugin. I've done a Google search on the difference between the two techniques but couldn't find anything.

我想知道的是哪一个(或者不同的地方断了),我应该在ASP.NET MVC 3使用。

什么是AJAX实现形式的ASP.NET MVC的最佳实践和库?

哪些优势和 Ajax.BeginForm 弱点VS jQuery的表格插件?

What are the strengths and weaknesses of Ajax.BeginForm vs the jQuery Form Plugin?

推荐答案

我会用这个插件。

在MVC 3,阿贾克斯助手基本上是使用jQuery的Ajax实现的。 (见布拉德的威尔逊帖子上不显眼的阿贾克斯)的上攻使用这个插件是,你有更多的控制你的网页,你不必使用笨重的BeginForm API。

In MVC 3, the Ajax helper is basically implemented using jQuery Ajax. (See Brad's Wilsons post on unobtrusive Ajax in MVC 3.) The upside to using the Form Plugin is that you'll have more control over your pages and you don't have to use the clunky BeginForm API.

这篇关于ASP.NET MVC 3 - Ajax.BeginForm VS jQuery的表格插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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