Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Prevent 'Page has expired' when a client hits back to return to a search page

Reply
Thread Tools

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

 
 
Mike
Guest
Posts: n/a
 
      08-08-2003
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:

http://www.asp.net/Forums/Search/def...spx?tabindex=1

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

Thanks,

Mike


 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      08-08-2003
Mike,

You'll love my answer...

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

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:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"Mike" <> wrote in message
news:...
> 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:
>
> http://www.asp.net/Forums/Search/def...spx?tabindex=1
>
> Downloaded the source and tried to find out how they did it to no avail,

any
> ideas?
>
> Thanks,
>
> Mike
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Canned Olympus exec hits back at Olympus RichA Digital Photography 13 10-23-2011 07:50 PM
45 GB HD-DVD hits back at Blu-ray !!!! R500 Xenon DVD Video 53 06-15-2005 05:26 AM
Pagination function for search page returning too many hits to display on one page. Henrik ASP .Net 1 06-02-2005 01:17 PM
LDAP search doesn't return all hits Stephan Koser Java 2 03-16-2005 02:41 PM
Number of hits divided by "robot hits" Dos-Man HTML 5 03-04-2004 07:56 AM



Advertisments
 



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