"warning: page expired" error message

L

Loane Sharp

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
 
S

sreejith.ram

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(true);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top