473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

"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 1720
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(DateTime.Now + new TimeSpan(2,0,0));
Response.Cache.SetAllowResponseInBrowserHistory(tr ue);

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(DateTime.Now + new TimeSpan(2,0,0));
Response.Cache.SetAllowResponseInBrowserHistory(tr ue);

Nov 19 '05 #3

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

Similar topics

16
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....
3
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...
4
by: Jason Clark | last post by:
IE says there is a page error. How to rectify? www.beamlmheavyhitter.com Jason
0
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...
1
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...
0
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. ...
2
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...
3
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...
4
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>...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.