Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 October 15th, 2004, 01:30 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default displaying "Expired" message whenever user click b

Hi All,
     I have a serious problem with browser back button. Here in my website i have option to delete one record. Again user is going back by clicking browser back button and he is tring to delete that record. There i am getting problem. like this there are so many things he can do by going back. So I want to display a message like "This page has been expired. click refresh...." . This message i saw in so many websites.
I used the following code.But i am not getting the result.

<head>
<meta name="expires" content="-1">
</head>
..
hi all please give me immediate solution for this.
Thanks in advance..


Suresh
</head


 
Old October 15th, 2004, 03:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

It's better to put these things in the ASP, as headers from the server take precendence over META tags in the HTML. I use these commands at the top of every page:
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1

If you're stuck with putting it in html, use this:
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">

hth
Phil
 
Old October 18th, 2004, 07:09 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
   Thank you for your reply.
I dont have any restrictions such as java scriot or ASP.
i used your code.
If I use javascript i am not getting any result.This Code i have kept in <head> tags.Even then I am not getting any result.
If I use Vbscript at the top of the page and if i click "back" button first time i am getting the expiry mesage. But the problem is Even if i click forword button i am getting the same message. And If i go on click the back button for 4 times i am getting the old page.
I want this message whenever i click back button and it has allow forword navigation. and no more backword navigation is allowed.
I want immediate solution..
Please help me in this..
Thansk inadvance.
Suresh

 
Old October 18th, 2004, 07:12 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

And one more thing i want to tell u.
once after deleting one row in my page i am submitting to the same page. So i am writing your code only in this page.So after click 2 times back button, other past page is coming into picture.Do i need to write this code in every page..







Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying message on the form nasirmunir Javascript How-To 3 June 4th, 2008 10:20 PM
Grid Not Displaying Error Message rojiin ASP.NET 2.0 Basics 0 October 22nd, 2007 05:13 AM
Displaying a completed message after the query has sibo32000 Excel VBA 1 February 19th, 2007 11:13 PM
recording user click throughs malk Classic ASP Basics 0 March 16th, 2005 08:13 AM
Subreport not displaying no data message in main lic023 Access 0 March 15th, 2005 08:15 AM





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