473,616 Members | 2,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"warning: page expired" error message

Hi there
Sometimes, when I hit the <Back> button in the browser, instead of going to
the previous .aspx page I get an error screen and "Warning: Page Expired".
(This is a "regular" error page rather than generated by the .NET compiler.)
How can I change the settings so that the page never expires, or else
expires only after a long time?
Best regards
Loane
Nov 19 '05 #1
2 1733
this happense because the page is not cached at local machine.Are you
looking for IE settings or ASP.NET code to keep the page cached?

I am not sure changing IE settings would help..But this change may get
the latest page from server every time. i havent tried.

Tools Menu -> Internet Options Menu -> General tab -> Settings

At Settngs Property page, for "Check for new version of page:" select
"Every Visit to the Page"

if looking for asp.net code ,you can define the caching parameters like
below

Response.Cache. SetCacheability
Response.Cache. SetExpires(Date Time.Now + new TimeSpan(2,0,0) );
Response.Cache. SetAllowRespons eInBrowserHisto ry(true);

Nov 19 '05 #2
thanks very much
Best regards
Loane
if looking for asp.net code ,you can define the caching parameters like
below

Response.Cache. SetCacheability
Response.Cache. SetExpires(Date Time.Now + new TimeSpan(2,0,0) );
Response.Cache. SetAllowRespons eInBrowserHisto ry(true);

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
15731
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained. Presently we get a "Page has expired" message. How can we avoid this? Full details: Having searched for postings on how to avoid the "Page has Expired" they are
3
2775
by: Ed Burns | last post by:
Hi. I am trying to disable a user from going back to a previous page and displaying information previously shown. I want to give them the typical "Page has Expired" warning message. I am using Win Server 2003. Does anyone know what you have to do so that the user can only see the page once and not to be able to click back and see a cached page. Thanks! Ed
4
3250
by: Jason Clark | last post by:
IE says there is a page error. How to rectify? www.beamlmheavyhitter.com Jason
0
2650
by: Carl Owenby | last post by:
Re: Microsoft Knowledge Base Article - 174942 "File Modified Outside Source Editor" Warning Message I believe I have discovered a cause of this warning in a specific situation. I encountered this message while using Microsoft Visual C++ .NET. The message box appears after the "Build Solution" command is complete, following editing of a source file using the native .NET editor.
1
1525
by: Patrick.O.Ige | last post by:
Hi All, How can i get rid of "Warning :Page has expired" Question after clicking on BACK button on the browser?I have an application that uploads a file to a Server and after "Confirmation that file is uploaded" i press the BACK button and it gives the error.. Any solution to this! Patrick
0
1206
by: Amy | last post by:
I have a page webform1.aspx with dropdownlist and sutopostback=true. Now if I go towebform2.aspx from webform1.aspx, then I use IE back button, I will get "Warning: Page has Expired" message. Anybody know how to fix this problem? thanks, Amy
2
1300
by: Jo | last post by:
Hi all, I've created a FileUpload in the footer of a Gridview. The only thing I want to do with this, is to pick a file with the Browse-button or to fill in a filename myself (without the Browse-button, but only the filename, not the filepathe!). Using the Browse-button works fine, but when I just write the filename (like "test.txt") in the textbox, IE is gives me "error on page"-message in the left corner and when I click on this for...
3
3060
by: Chuck Cobb | last post by:
I'm doing a CSharp project in VS2005 and I'm getting some strange warning messages. The problem is that the warning messages don't link to anything in my code so they are very difficult to track down. Some of these also seem to be "phantoms" where I think I've corrected the problem but the warning message persists. For example, I made some changes in my code and started getting a warning message that I had a "duplicate component name"...
4
3021
by: rukkie | last post by:
Hi, I have some problems with a PHP reference in a <SCRIPTtag, but only with the Internet Explorer, which gives a "Error on page" message in the Status Bar. The code is as follows : <script> <!-- var stat =<?php echo stripslashes($status); ?>; window.status = stat;
0
8203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6097
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4141
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2579
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.