ASP.NET - problem when refreshing hole page using timer controll

Asked By mani on 15-Jun-12 12:55 AM

hi..i have gridview and two dropdownlist for searching and show record in gridview also..and also i am refreshing gridview using time controll ..so its refreshing hole page at certian time interval..but i am not able to search properly because dropdownlist focus is not focusing correctly by refreshing hole page..

i used updated panel for gridview to update only gridview ..but not paging is not working....any solutions??appreciated..

Jitendra Faye replied to mani on 15-Jun-12 01:02 AM

Yes, if you are refreshing the page then Paging will be lost because every time fresh data will be loaded to grid,

here you can do one thing- You can maintain Paging index in ViewState Variable, and after loding grid assign pageIndex to GridView.