I am using jquery ajax method in my app and from the web method I am returning a huge generic list.Upon jquery ajax success I am rendering div’s with the data retruned from the web method.
B’coz the data returned is very huge,I need to paginate the results.Initially I am returning the first 10 records using List.Take(10).Then upon the next pages button clicks I do not understand how to return the next records.
Could someone please help?
Use the Skip method to skip records to the appropriate page. For example:
You’ll probably need some bounds checking for the size of the list but that’s not very difficult.