You have 2 options:
1. Manage the history on the client side with a history-capable javascript framework with js such as
jQuery-History[
^].
2. Manage the history on the server using the session and viewstate. This one is much more difficult to implement, prone to error, and harder to maintain.