Wrox Programmer Forums
|
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 11th, 2005, 12:08 AM
Authorized User
 
Join Date: Jun 2005
Posts: 32
Thanks: 0
Thanked 1 Time in 1 Post
Default How to expire previous page

I need to expire the previous page.Can anyone give me an example or idea?Thanks.

The Following User Says Thank You to johnsonlim026 For This Useful Post:
geniusboy (July 23rd, 2009)
 
Old May 15th, 2009, 07:19 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
Disable the back button throught javascript using following code
Code:
history.forward();
use this code in javascript

Enjoy
 
Old May 20th, 2009, 01:50 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

I'm curious. Are you saying to run that javascript command in the page load? I'm assuming you are talking about the browser 'Back' button.

Thanks,
Richard
 
Old May 21st, 2009, 12:23 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
Its command on javascript,which is written on page load event.

Enjoy :-)


Pratik Asthana
 
Old May 21st, 2009, 12:22 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Code:
Private Sub Page_Load(ByVal s As Object, ByVal e As EventArgs) Handles MyBase.Load

history.forward()

End Sub
Is this what you mean?

Thanks,
Richard
 
Old May 22nd, 2009, 12:30 AM
Authorized User
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
it will be written on .aspx page

Code:
<script language="javascript" type ="text/javascript" >
history.forward();
</script>
The Following User Says Thank You to pratikasthana For This Useful Post:
rstelma (May 22nd, 2009)
 
Old May 22nd, 2009, 12:05 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

That looks a little better. So this script goes between the <head></head> tags. We have a lot of newbies here looking for answers, so it's best to be as clear as possible when posting.

Thank you for your post. Very much appreciated.

Richard





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Expire code not working in firefox nrlahoti ASP.NET 2.0 Professional 1 May 15th, 2009 07:21 AM
Find previous page gandaliter PHP How-To 2 June 7th, 2007 11:55 AM
how to redirect to logout page when session expire madhusrp ASP.NET 2.0 Basics 10 April 4th, 2007 08:16 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.