i have custom paging for a grid with first next prev last
my issue is with current code it takes a lot of time for post back & going to next page & displaying records
even page loading takes time
so i needed to load the records on request
means suppose the pagesize is 50 records per page
on inital page load only 50 records will be displayed from database instead of all say 2000 records
& then when user clicks next next 50 will be loaded from database to grid & so on
how can this be queried & coded