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
25-Aug-2014You do need same checking and rebinding if the cached data is not available.