locked
SharePoint Webpart with Ajax breaking with large data sets RRS feed

  • Question

  • I am working on a web part that uses an update panel to retrieve a large data set in the form of a json object. When the json object has a large dataset, I can no longer use the __doPostBack function and get a Sys.WebForms.PageRequestManagerParserErrorExcpetion.  This only happens when the amount of data is relatively large.  What is the limit of data that can be returned via an ajax call and how do I increase this limit?

    Steps my page goes through:

    A javascript function gets the updatepanel ID and sends a value using __DoPostBack.  My code behind, retrieves all records related to the value I send it, and stores this data into various lists of objects.  Then I use JavascriptSerializer to convert my object into a json string which is sent back to the page.  A final javascript function parses the returned data. 

    some calls can return up to 100 database rows of roughly 10 columns.

    Friday, June 8, 2012 10:29 PM