This is a migrated thread and some comments may be shown as answers.

Issue w/ Uploading more data than Downloading w/ AJAX

2 Answers 17 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
bradtm
Top achievements
Rank 1
bradtm asked on 09 Dec 2008, 06:23 AM
I have a large test Sales Order application that contains Telerik, and ComponentArt controls. I have a Telerik Script Manager, ComboBox, AjaxManager, and a Component Art Grid. I've had a horrible experience with the CA controls, and am in the process of converting all the controls to Telerik (btw they are 10x better!).

I have a ComboBox that queries 9000 items, and returns 25 per page. When an item is selected it calls an AJAX function and returns item information.

When calling the AjaxManager I send 40 KB, and receive 8 KB. At first I thought it was my ViewState, so for testing I disabled it on the Page and AjaxManager. Still the same. I have included a link to an HttpWatch log of this problem. Do you know what might be the issue?

http://www.murphysmagic.com/httpwatch.zip

brad

2 Answers, 1 is accepted

Sort by
0
bradtm
Top achievements
Rank 1
answered on 10 Dec 2008, 06:16 AM
I solved my own issue. It was the ViewState. Even having the ViewState disabled on the Page level, the specific controls had to have their ViewState disabled. What was once a 60KB post for a simple AJAX call has been pushed down to 6KB.

Is there a way to tell AJAX calls to not send any data regarding other controls in the POST, and just send what I'm passing through the function parameters?

brad
0
Vlad
Telerik team
answered on 10 Dec 2008, 12:54 PM
Hi brad,

Generally if do not send all required data the page lifecycle will be completely broken. You can use however PageMethods or WebServices to perform ajax updates for simple scenarios.

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
bradtm
Top achievements
Rank 1
Answers by
bradtm
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or