Home > DeveloperSection > Forums > Paging Event of GridView With Caching Object
Samuel Fernandes
Samuel Fernandes

Total Post:159

Posted on    August-25-2014 2:06 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 826  View(s)
Rate this:

I displaying the Gridview data form cache object.When i click on the pagenumber it shows blank webpage. how to handle the paging with caching object .

Do i need to check the same condition in paging event

 DataTable GetByCahe =(DataTable) Cache["DataStore"];

            if (GetByCahe != null)


                ManageRegGrid.DataSource = GetByCahe;




            load From the database

Sumit Kesarwani

Total Post:378

Posted on    August-25-2014 2:30 AM

Hi Samuel, 

You do need same checking and rebinding if the cached data is not available.

Don't want to miss updates? Please click the below button!

Follow MindStick