views:

23

answers:

1

I have a gridview on my page. I want the page to show me next 10 records after every 10 seconds. i.e. automated paging.

I have implemented manual paging on Gridview. How can I do this using Client Side event triggering

A: 

I think this can do the work, just need some checks and defind the MaxPages that its easy

var CurrentPage = 1;
setInterval( function()
 {
  CurrentPage++;
  if(CurrentPage > MaxPages)
   CurrentPage = 1;

  __doPostBack('<%=MyGrid.UniqueID%>','Page$'+ CurrentPage );
 },10000);
Aristos