Which is more efficient - server calls with ASP.NET AJAX or jQuery?

I used jQuery exclusively in my last project to complete all my AJAX calls. I used the calls to $ .ajax and $ .getJSON to return data to the page. However, I see a ton of examples on the Internet, using jQuery to process the user interface and format the data, but using ASP.NET AJAX to actually make web service calls and retrieve data. Is it more efficient to use ASP.NET AJAX to retrieve data for AJAX calls? Does it work better than jQuery?

+3
source share
4 answers

I don’t think that will change much if you use ASP.NET Ajax or jQuery. What may matter is what data is returned and what format it has, for example, in XML, HTML or JSON.

For example, it might be more efficient to return a lightweight JSON object from an Ajax call rather than a large XML document: you can always control the size of the Ajax response using Firebug or something similar.

You will probably have to judge each scenario by its own merits.

+9
source

Ajax Control Toolkit microsoft 2 , jQuery, , , , jQuery ajax- , ajax. , , ajax.

HTTP jQuery ajax-, .

+6

. MS JQuery , "" , (, ), .

, , , , (json vs. xml), JQuery $.ajax $.getJSON - Sys. Net.WebServiceProxy . asp.net ajax - , , - (.. HTTP).

+1

, ASP.Net jquery... http://www.aspcode.net/ASPNET-and-JQuery-first-example.aspx

If this is true, it will mean that they are connected by speed. Although jQueries libraries are likely to update faster.

0
source

Source: https://habr.com/ru/post/1699270/


All Articles