How to automate paging on GridView using Timer from javascript
I have a 开发者_JS百科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
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);
精彩评论