Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 August 4th, 2005, 10:41 AM
Authorized User
 
Join Date: Jun 2005
Posts: 32
Thanks: 0
Thanked 1 Time in 1 Post
Default Disabling refresh and going to previous page

I would like to disable the user from going to previous page that the user has gone through.I would like want to disable the user from refreshing the current page.Can anybody give me some idea and example on doing this?
 
Old August 5th, 2005, 10:35 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can't stop the user from refreshing the browser, that is part of the browser functionality. You can check if a user goes back by using a sesssion variable.

 
Old August 6th, 2005, 12:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I guess u dont want to alow user to use previous page values & ...
u can simply expire ur pages. This will make user to not able to use preciuos pages & ...
put
Code:
response.expire
in top of ur codes in page

Always:),
Hovik Melkomian.
 
Old August 8th, 2005, 11:56 AM
Authorized User
 
Join Date: Jun 2005
Posts: 32
Thanks: 0
Thanked 1 Time in 1 Post
Default

you are right melvik.I want to expire the page ..Can you give me an example?I put response.expires= -1 in the page load function,why it doesn't work?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling the refresh command anukagni Access 0 January 16th, 2006 06:58 AM
disabling refresh shruthi Beginning PHP 0 November 16th, 2004 05:10 AM
go back previous page hosefo81 PHP How-To 2 February 11th, 2004 01:50 PM
Disabling Refresh mildge Beginning PHP 1 December 22nd, 2003 01:00 PM





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