Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 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 March 23rd, 2010, 03:05 PM
Registered User
 
Join Date: Jan 2010
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Default code for back page

i want to develop a code in my project which allows usersto navigate back page by clicking on the button.

thank you in advance.
 
Old March 23rd, 2010, 04:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You can use JavaScript's history.go for that:

<input type="button" value="Go Back" onclick="history.go(-1);" />

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
csevl (March 24th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login page back to original page pablohoney Classic ASP Basics 1 October 3rd, 2006 07:09 PM
onChange posting back to same page? busher Classic ASP Basics 1 March 1st, 2005 06:20 PM
div is disapeared when go to other page then back alyeng2000 Javascript 3 February 13th, 2004 02:51 PM
go back previous page hosefo81 PHP How-To 2 February 11th, 2004 01:50 PM
div is disapear when page back alyeng2000 ASP.NET 1.0 and 1.1 Basics 0 February 6th, 2004 09:05 AM





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