Remove PostBacks from browser history
I have a search results page that when a user chooses a property goes through to a property details page. On this page there are various controls that use page postbacks to change the format of the page. Ideally I would like this postbacks to be removed from the browser history so no matter how many there have been clicking the back button will take the user straight back to the search results.
I know of using the replace function instead of location in JavaScript but is there any way of doing this server-side? I was thinking of maybe changing the Referrer page?
DJ
Re: Remove PostBacks from browser history
You can use smartNavigation="True" at the top of the HTML page, inside the <%@ %> tags.
HTH
HoraShadow
Re: Remove PostBacks from browser history
Is there a way to do it without SmartNav as it's got real problems when it comes to browser compatibility.
DJ
Re: Remove PostBacks from browser history
I cannot think of a way other than location.replace with the inclusion of querystring parameters to maintain the new page format.