Reduce ASP.NET Page size and complexity using JQuery-Part 2

This is part 2 of my series for ASP.NET AJAX and JQuery comparison. You can read part 1 here. In my last 2 articles (Dynamically create ASP.NET user control using ASP.NET Ajax and Web Service and Dynamically create ASP.NET user control using JQuery and JSON enabled Ajax Web Service), I explained how to access JSON data from ASP.NET AJAX script service using ASP.NET AJAX client side framework and JQuery. In this post I will compare response/ request for these two implementations.

You can download the C# solution code here and VB.NET solution code here

For network monitoring, I used Firebug for Firefox 2/3.

Below is the image for ASP.NET Ajax implementation related files

With MS Ajax 


Below image show JQuery related implementation files

With JQuery 

See The Response Time for GetControlHtml Ajax Call in both implementation. The First GetControlHtml Ajax call is for GridView Control and second GetControlHtml Ajax call is for Login Control.  Same webservice method and controls are called in both implementations, so response size will be same.

It clear from the figure that in JQuery solution

  • AJAX call take less time
  • JavaScript Proxy File for web service is not required
  • ASP.NET AJAX client side framework files are not required
  • Less number of requests to the server
  • Overall transaction size is less

Please post your valuable feedback for this article. 

You can download the C# solution code here and VB.NET solution code here

kick it on DotNetKicks.com

2 Comments

  • The size for ASP.NET AJAX Framework files are reduced using gzip compression. JQuery file is also minified.

  • This is one of the issue that's really close to my heart. Asp.net ajax framework (and toolkit) is an awesome RAD framework, however, it seems Microsoft is (consistently) aim towards the intranet/small to medium business market and often forgot that the same technologies are used to build public facing websites.

    It's an awesome move for Microsoft to include jQuery in their supported line product.

Comments have been disabled for this content.