I have a jQuery Ajax call which passes entered sql string and returns data rows accordingly. Because these can be quite large amounts of data I changed the call to take a skip and no. of records parameter. This is ok but what I really want is to list all data, as one call can return a large amount I was hoping to maybe split it up.
The process I would like to do is:
- Ajax Call to process data and store the rows somewhere
- Return the first 25 rows
- Add 25 rows to div
- Get the next 25
- Add next 25 rows to div
- etc until no more rows to add
Has anyone needed to do something like this before or has any suggestions as to how I can get a large amount of data via Ajax? For reference I'm using an ASP.Net WebMethod.