I'm using an UpdatePanel
and the ScriptManager
's AddHistoryPoint
method to save my page state in the browser's history. The page is a simple search/results page with 2 states:
- STATE 1 - showing search filters
- STATE 2 - showing search results
When I navigate back to the page (by clicking the back button in my browser), the page shows the initial state (STATE 1) but then the update panel posts back and the page flips to the search results (STATE 2).
This looks untidy and it feels like I'm missing something here in my implementation. How can I tell the page to either just load the saved state, or hide the page content until the saved state has been loaded?