Saving page on WebGrid and returning to that page?

ASP.NET

ASP.NET AJAX & iPhone Controls

Saving page on WebGrid and returning to that page?

  • rated by 0 users
  • This post has 1 Reply |
  • 1 Follower
  • Hi Everyone,

     I have paging set in the grid and the ViewState is set to True. But I am going to another page, making changes and then calling the page with the grid back. The page starts back to the first one. I see there is a property called Page and PageCount. Is there any way I can save the page to a session variable and set it back? I tried doing this but it owuld not let me do that with Page.Count.  I searched for an answer but could not find one.

    Thanks ahead for your help!

    Warren

     

  • Hi,

     
    could you please send a sample illustrating the issue? I guess in your case grid resets the page somehow...
     
    I've checked it on my side, made a sample with two pages, one had a grid with paging enabled and a link to the second page, <a href="Default2.aspx">href</a>. On the first page I go to the five page in the grid, then open a link in the same window, then go back to the page with the grid and it is still on the five page.
     
    Regards,
    Sergey.
     
Page 1 of 1 (2 items)