Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2004, 03:00 PM
Authorized User
 
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default Warning: Page expired

When I click "Back" button from the browser, I get following message:-

"Warning: Page as expired."
How can I cache it.

Thanks
Renu

 
Old September 27th, 2004, 09:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

If you want to cache a form, specify OutputCache parameter as top, similar to the @Page directive. Look in MSDN for details.

Brian
 
Old September 28th, 2004, 10:05 AM
Authorized User
 
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Default

bmains-
I tried that and then it does not even display fields on my form.
I also tried Response.Cachecontrol="Public", did not seem to cache it.
Then, I changed the form posting method from "post" to "get" on my login page and it seems to have increased the expiry duration a little bit, but does not completely go away. I have surfed the web for the same and found that this is something that I have to live with, IE has introduced it as a security feature. But, if you do have a suggestion, I can definitely try it, otherwise I will assume it that that's how the websites are.


 
Old September 28th, 2004, 11:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try setting the Response.Expires attribute.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 9 JavaScript Warning Message Page 304 workib BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 May 28th, 2008 04:42 PM
TimeOut Expired Lalit_Pratihari SQL Server 2000 1 July 23rd, 2006 12:59 PM
Timeout expired ssingh SQL Server 2000 4 April 19th, 2004 11:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.