tags:

views:

96

answers:

3

The data is displayed in gridview with paging on an ajax enabled webpage. The gridView contains Item templates containing link button. On itemCommand event, page redirect to display data in new page. When The Back button on browser pressed, the previous state of the page doesn't load. Plz help me. Thanks in advance.

A: 

Use Google Web Toolkit, it allows the state to be bookmarked and isn't affected by back/forward button.

Otherwise your options are:

  • Telling the user to not press the back button.
  • Putting the state in the url, e.g mypage.asp#page_123 and using that to determine the state in your javascript at page load.
Click Upvote
A: 

Perhaps set a cookie and use it to get the right page when initializing the gridview. Or modify the hash at the end of the URL (eg, add "#page2" to the location bar and read it back on init).

thenduks
A: 

Look at this js stuff from google

Kai