ASP.NET AJAX与JQuery的用于Web服务调用 [英] ASP.NET Ajax vs. JQuery for web service calls

查看:128
本文介绍了ASP.NET AJAX与JQuery的用于Web服务调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我倾我的脚到同时使用一个应用程序ASP.NET AJAX(ControlToolkit等)以及jQuery的。

I am dipping my feet into an app that uses both ASP.NET Ajax (ControlToolkit, etc.) as well as Jquery.

有什么优点/缺点使用ASP.NET AJAX机制调用JSON序列化.NET Web服务的方法......与使用JQuery的阿贾克斯()? (或者是6和1/2十?)

Are there any pros/cons to using the ASP.NET Ajax mechanics for calling JSON-serialized .NET web service methods ... vs. using JQuery .ajax()? (Or is it "6 and 1/2 dozen"?)

谢谢!

推荐答案

ASP.NET Ajax是pcated德$ P $,我相信,不再支持。这是pretty的体积大过,因为它试图生成JavaScript对象,而不是只使用JSON。 $。阿贾克斯强烈推荐来代替。

ASP.NET Ajax is deprecated and, I believe, no longer supported. It is pretty bulky too, as it tries to generate JavaScript objects instead of just using JSON. $.ajax is strongly recommended instead.

这里是一个博客帖子,讨论的情况。原来,ASP.NET AJAX被移动到Ajax控件工具包,它本身正在向服务器控制的重点。所以,如果你使用ASP.NET WebForms和所有的< ASP:无论/> 控件,Ajax控件工具包就OK ...否则,如如果你正在使用ASP.NET MVC,绝对坚持使用jQuery的。

Here is a blog post that discusses the situation. It turns out ASP.NET Ajax is being moved into the Ajax Control Toolkit, which itself is shifting to a server-control focus. So if you're using ASP.NET WebForms and all the <asp:Whatever /> controls, Ajax Control Toolkit is OK... otherwise, e.g. if you're using ASP.NET MVC, definitely stick with jQuery.

这篇关于ASP.NET AJAX与JQuery的用于Web服务调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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