I am using ajax.net to return an array of records. Some request can be very large and need to be sent with several requests. Is the a way to determine if the json length of an object exceeds the max length before it throws an exception so I can divide the records into smaller returns?
views:
107answers:
1
A:
Probably the easiest way is to serialize the object server side before returning the request and checking the serialized string length before returning it.
lomaxx
2009-09-15 02:37:08