I am having performance problems with ajax control toolkit. I have a web form with some ajax control toolkit controls(Textbox, Dropdownlist) and some simple standard asp.net controls. Now whats hepening with me whenever I post a ajax call to server each time request size increases secondly all the data of controls of the page is being sent back to server on each request why?
If I do all this work with raw javascript using XMLHttpRequest object(the very first form of ajax) it works fine.
Hi,
According to your description, I think it's normal to see this.
When you use ASP.NET AJAX, it doesn't eliminate unnecessary data transfer. All information on current page will be posted to server just as a normal request.
While working with a raw XmlHttpRequest, you can send necessary data explicitly.
you are right its normal way of httprequest.
But my point is, don't you think for a specific control say a button or text box only required data(viewstate) should be travel to server as you can do using simple ajax.
I think if this functionality could be added in Ajax Framework it will be a value added in this framework for enterprise applications wehere performance is critical.
Yes, this is a good point.
But we have to sacrifice some performances when we manage to achieve an easy-to-use framework. This sacrifice usually comes with UpdatePanel, but if you are accessing WebService or PageMethod, there will be less unnecessary traffic.
No comments:
Post a Comment