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 18th, 2004, 08:13 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default emulating Back browser button

 Hi,

   i know how to do response.redirect("my form.aspx") to take
   me to whatever form i need.

   But..i want to have a button on my web form that when i press it,
   it is the same as pressing the browser 'Back' button. ie it takes
   me back to the previous form i was viewing.

   Does anyone know the code to do this?

TIA.

 
Old August 19th, 2004, 01:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

<input type="button" name="backbutton" value="back" onclick="javascript:history.go(-1);">

Is this what you are looking for?

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old August 19th, 2004, 03:05 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perfect. Many thanks.

Chas (Canterbury, UK)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Back button of browser software_developer_kk Classic ASP Basics 7 September 27th, 2007 03:22 PM
browser back button Dj Kat Javascript How-To 1 February 22nd, 2006 06:33 AM
Effects of Browser Back Button prafullprashant ASP.NET 1.0 and 1.1 Basics 0 November 23rd, 2005 02:32 AM
Browser back button karetaker ADO.NET 2 November 5th, 2004 02:32 AM





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