473,320 Members | 2,193 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,320 software developers and data experts.

warning:page has expired

30
I frequently have a problem using the 'back' button. Instead of going back, I get the 'page cannot be displayed' message and sometimes even 'refresh' doesn't work.
Feb 5 '08 #1
2 943
radcaesar
759 Expert 512MB
Add this code on page pre-render

protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);

StringBuilder javaScript = new StringBuilder();

javaScript.Append("\n<script language=JavaScript>\n");
javaScript.Append("window.history.forward(1);\n");
javaScript.Append("</script>\n");

Page.RegisterClientScriptBlock("HistoryScript", javaScript.ToString());
}
Feb 5 '08 #2
Plater
7,872 Expert 4TB
I frequently have a problem using the 'back' button. Instead of going back, I get the 'page cannot be displayed' message and sometimes even 'refresh' doesn't work.
That's a cache-ing issue. The page is expireing from the cache in your browser.
Feb 5 '08 #3

Sign in to post your reply or Sign up for a free account.

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....
1
by: ddddd | last post by:
Regarding the Internet Explorer message below: "Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a...
3
by: mgm | last post by:
How do you get a web app to not show the 'page has expired...' error and refresh and requery when you hit the back button after submitting a form? I just want the old data to still be displayed in...
1
by: John Good | last post by:
I have an intranet .NET web application running on my server. Everything works fine until 2 weeks ago. One of my user start to get message "Warning Page has expired" on almost every pages when she is...
0
by: Quentin Huo | last post by:
Hi: After the submit button is clicked, the page is posted back. Now if I click the "Back" button in the IE toolbar, I will get the warning message: Warning: Page has Expired The page you...
1
by: dave | last post by:
How do you get around the problem of "Warning: Page Expired" when clicking the back button a browser. I have several cases where i have a listing page that then goes to a detail page in the same...
1
by: Fernando Chilvarguer | last post by:
HI, I have a page that users use to search for other users on my web site. Very simple page: - 3 input Parameters (TextBoxes) - 1 DataGrid with the search results. All works fine.
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: Loane Sharp | last post by:
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
0
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.