Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSON size 1

Status
Not open for further replies.

jshurst

Programmer
Oct 27, 2004
1,158
US
I have a string which I need to return using ajax (and asp.net). The string is too long though and I get an out of memory exception (yes it is huge). I was wondering if using the JSON would get around this limitation? I've never used it before...

thanks,

J
 
JSON is merely an encoding scheme, sending data encoded as JavaScript array and object literals. How would this change the fact that you are sending a large string?

Tom Morrison
 
I have no idea...notice my quote above,
I've never used it before...

Do you have any suggestions to get around the size limitation, or am I simply trying to return too much?
 
It would seem that Ajax is probably not an appropriate mechanism for fetching a huge amount of data in a single call.

My question was to see if the data you are sending really are structured in some way that would allow the data to be subdivided. If the data can be subdivided, then perhaps a series of Ajax callbacks can be used. I note in your ASP .NET FAQ that you seem to be stringing a bunch of things together.

So, perhaps there is a mechanism available to you to subdivide the data?

Tom Morrison
 
Thanks. I've thought about that, so I might go with that route. Thanks for the suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top