473,796 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page Caching - Warning: Page has Expired

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.
When the user clicks on one of the records in the datagrid, it takes him to
the detail page.
On the detail page, when the user clicks the browser back button, he gets:
Warning: Page has Expired

I added the @ Output Cache directive but it did not work.

<%@ OutputCache Duration="60"
VaryByParam="Fi rstNameTextBox, LastNameTextBox ,CityTextBox" %>

Any ideas?

Thanks,
Fernando
Nov 18 '05 #1
1 1387
Hi,

this is the obvious way HTTP POST works. The POST method checks when the
data in the form is changed, so clicking back will cause a page refresh.

However, as you have to move between 2 pages only, you can use the
SmartNavigation feature to keep the last page viewed in history. Set it to
true, and it will work.

Regards
Joyjit

"Fernando Chilvarguer" <fe******@nospa m-impex.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
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.
When the user clicks on one of the records in the datagrid, it takes him to the detail page.
On the detail page, when the user clicks the browser back button, he gets:
Warning: Page has Expired

I added the @ Output Cache directive but it did not work.

<%@ OutputCache Duration="60"
VaryByParam="Fi rstNameTextBox, LastNameTextBox ,CityTextBox" %>

Any ideas?

Thanks,
Fernando

Nov 18 '05 #2

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

Similar topics

2
12979
by: Jarkko Kähkönen | last post by:
Hi! I have Windows XP&IE6.0.2... (SP1). I'm coding one project with PHP. I get "Warning: Page has Expired" when I try to get back to the "POSTed page" (page whither moved from FORM-page). Better explanation: - Pages are: * Page A: Front-page
1
2052
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 security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. " I'm developing an e-commerce site from scratch.
3
3914
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 the form. I checked knowledge base for this and I do not have "Do not save encrypted pages to disk" checked and am running IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158.
12
10175
by: VB Programmer | last post by:
I know some sites will display the following message if you click on the BACK button in your browser. How do I implement this feature? 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 security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the...
15
4780
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
4
2825
by: Scott Shuster | last post by:
Hi, I've been searching and testing and have not yet found the answer I'm looking for. I have an ASP.NET (vb) application with an ecommerce function. When the user submits the page, I DON'T want them to be able to click on the 'BACK' button and get back to the form - they may inadvertently re-submit the page and get charged again. I WANT them to get the "Page has expired" message.
1
4969
by: Bill Faulk | last post by:
I want to avoid letting users use the back button on forms with multiple postbacks so I use Response.Cache.SetNoStore() for these pages. This works fine for IE7 and Firefox by showing the desired "this page is expired" message for those browsers. IE6 just shows a "the page cannot be displayed" error. Is there any way to avoid the error for IE6 and just show the page as expired when the user presses the back button? If there's any...
3
2795
by: =?Utf-8?B?Vk1J?= | last post by:
How can I expire a page after I click on something that redirects me to another page (either a link or a Submit button)? I load the page to be expired via https. I've tried several options I found on the web, including adding on (OutputCache location="none") on my aspx page, using Session.Count, among others. I even tried something that I found on http://aspnet.4guysfromrolla.com/demos/ExpiringDemoA.aspx. But the page "expires" if I...
3
2509
by: =?Utf-8?B?cHJhZGVlcF9UUA==?= | last post by:
Hi All, Can anyone please explain me why I am not able to disable Browser caching in ASP.net by writing the following code Response.Buffer = true; Response.ExpiresAbsolute = DateTime.Now.Subtract(new TimeSpan(1, 0, 0, 0)); Response.Expires = 0; Response.CacheControl = "no-cache";
0
9680
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
10455
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
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7547
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
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
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
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2925
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.