Visual Studio .NET - Page has expired - Asked By Ralph Acido on 08-Sep-06 01:59 AM

How can I get the Page has Expired message to display? I have tried on & off
for 3 days to do this.

I have an 1.1 app which displays data. The user can update
their information on a page. When they hit the back button on the browser, I
want the page to show the expired message.

I have tried all kinds of cache settings but I cannot get this to come up.

Can someone give me an example or link to an example?

Check out this.. - K Pravin Kumar Reddy replied to Ralph Acido on 08-Sep-06 06:25 AM


simple idea i will give

just catch the browser back button

and write code to that


Sushila Patel replied to Ralph Acido on 08-Sep-06 08:03 AM

If using ASP.NET you can try

<%@ OutputCache location="none" %>

<% Response.CacheControl = "no-cache" %> - Rocky Guls replied to Ralph Acido on 08-Sep-06 10:22 AM

<% Response.CacheControl = "no-cache" %> <% Response.CacheControl = "no-cache" %>
  <% Response.Expires = -1 %> 

Add this to HTML of page and u r all set.

HTH<% Response.Expires = -1 %><% Response.CacheControl = "no-cache" %><% Response.CacheControl = "no-cache" %><% Response.Expires = -1 %><% Response.Expires = -1 %>