c# - Browser back button fails - ONLY IF postback has been performed on previous page -
i'll keep simple. have 2 pages:
- list page
- detail page
quick info on list page:
- a grid show list of items "view" hyperlink each pointing detail page (e.g. detail.aspx?id=1)
- a number of filters , search button
- by default list shows items without filtering
scenario 1 (ok):
- without filtering, click on of view links
- this take me detail page of selected item
- click on browser button, list page shown (ok)
scenario 2 (not ok):
- do search filter on list page, triggers postback filtered items
- click on 1 of view links
- this take me detail page of selected item
- click on browser button, error page!
error info:
- ie: webpage has expired
- chrome: err_cache_miss
- firefox: document expired
any idea why scenario 2 fails bring list page? don't need filters retained when going back, need list page displayed straight away without error.
thanks in advance
try clear cache. here similar discussion.
but did disable button line of javascript prevent these kind of problems
<script type="text/javascript"> history.forward(); </script>
and inserted "back" or "return" button second page used go initial page.
i hope convenient you.
Comments
Post a Comment