Results 1 to 4 of 4

Thread: Remove PostBacks from browser history

  1. #1

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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

    If I have been helpful please rate my post. If I haven't tell me!

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    608

    Re: Remove PostBacks from browser history

    You can use smartNavigation="True" at the top of the HTML page, inside the <%@ %> tags.

    HTH
    HoraShadow
    I do like the reward system. If you find that my post was useful, rate it.

  3. #3

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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

    If I have been helpful please rate my post. If I haven't tell me!

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width