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

Total Post:154

Points:1082
Posted on    August-25-2014 2:06 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 607  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;

                ManageRegGrid.DataBind();

            }

            else

            load From the database



Sumit Kesarwani

Total Post:378

Points:2694
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