I try to refresh page with timer every 1 minute and display data in gridview on next page until last record. What should I do?
protect void Timer1_Tick(object sender, EventArgs e)
{
if(GridView1.PageIndex==GridView.PageCount)
{
GridView1.PageIndex=1;
}
else
{ int pageno = GridView1.PageIndex+1;
GridView1.PageIndex=pageno;
}
GridView1.DataBind(); Timer1.Interval=600000;
}