Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 8th, 2008, 05:31 AM
Authorized User
Join Date: Oct 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Expire code not working in firefox

I am developing a site in .Net 2005 and i want to expire a page so that when an user clicks back button it should show page expire messsage. I am using this code
 Response.Cache.SetExpires(DateTime.Now.AddDays(1.0 ));
 Response.Cache.SetCacheability(HttpCacheability.No Cache);

and it is working fine in Internet Explorer nut the same code is not working in Firefox. Can anyone suggest an alternative or a solution for this. Thanks in advance.

Old May 15th, 2009, 07:21 AM
Authorized User
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post

Disable the back button throught javascript using following code
use this code in javascript


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to expire previous page johnsonlim026 ASP.NET 1.0 and 1.1 Basics 6 May 22nd, 2009 12:05 PM
how to redirect to logout page when session expire madhusrp ASP.NET 2.0 Basics 10 April 4th, 2007 08:16 AM
responseText not working in FireFox Coyote21 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 July 13th, 2006 05:53 AM
how to make a web page expire connect2sandep ASP.NET 2.0 Professional 1 March 14th, 2006 08:36 PM
Page Expire Chris Marsh VS.NET 2002/2003 1 April 4th, 2004 12:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.