Prevent 'Page has expired' when a client hits back to return to a search page

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Prevent 'Page has expired' when a client hits back to return to a search page

    I have a search page that I want to enable private caching so that when a
    user hits the back button they dont get the page has expired error.
    I have seen this done on:

    [url]http://www.asp.net/Forums/Search/default.aspx?tabindex=1[/url]

    Downloaded the source and tried to find out how they did it to no avail, any
    ideas?

    Thanks,

    Mike


    Mike Guest

  2. Similar Questions and Discussions

    1. Page Has Expired Message in between the php Page When I click Back in Explorer Menu
      Could anyone please help me on this?? I have a php script page, which is basically quiz. Visitors (after login in with their email address) are...
    2. to prevent client side web page caching
      Hi, I wish to avoid caching asp pages at the user end . Currently I have declared Response.Expires=0 at the top of my asp page. I have also used...
    3. Page has Expired, BACK-button -problem
      Hi! I have Windows XP&IE6.0.2... (SP1). I'm coding one project with PHP. I get "Warning: Page has Expired" when I try to get back to the "POSTed...
    4. after logout, how to retrieve an expired page if user click 'back' button?
      hi everyone, i've made a login and logout page, after user have logout, i want to retrieve an expired page if user click the 'back' button to...
    5. Warning Page Has Expired, I need to turn it OFF for a simple search page
      You can't turn it off. If you understand the reason for it, then you know that the Back button or Refresh button of a browser makes a new request...
  3. #2

    Default Re: Prevent 'Page has expired' when a client hits back to return to a search page

    Mike,

    You'll love my answer...

    My site's search has the behaviour you describe. Try it out at
    [url]www.aboutfortunate.com[/url]

    Now, I'm not positive why...

    Here's what I'm doing. I really only have one single page. I'm dynamically
    loading user controls into placeholders based on button clicks and I'm
    overriding the OnBubbleEvent within my default page to get those button
    clicks from my user controls. This method seems to create the behaviour you
    wish.

    I have a sample of the code I'm using on the web site itself so when you
    try the search you might want to search for something like: Using
    placeholders

    The title you should look for is: Reload dynamically created user controls
    in order to use their viewstate.

    If you have any questions about this technique feel free to email me.
    (Anyone)

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Mike" <mikenospam@com.nospam> wrote in message
    news:uOfqZvbXDHA.2484@TK2MSFTNGP09.phx.gbl...
    > I have a search page that I want to enable private caching so that when a
    > user hits the back button they dont get the page has expired error.
    > I have seen this done on:
    >
    > [url]http://www.asp.net/Forums/Search/default.aspx?tabindex=1[/url]
    >
    > Downloaded the source and tried to find out how they did it to no avail,
    any
    > ideas?
    >
    > Thanks,
    >
    > Mike
    >
    >

    S. Justin Gengo Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139