forum

Home / DeveloperSection / Forums / Paging Event of GridView With Caching Object

Paging Event of GridView With Caching Object

Samuel Fernandes 1657 25-Aug-2014

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

Updated on 25-Aug-2014

Can you answer this question?


Answer

1 Answers

Liked By