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
Below image show JQuery related implementation files
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