Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 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 September 27th, 2006, 05:18 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default NOT ISPOSTBACK code runs when Back Button clicked

Code inside my NOT ISPOSTBACK logic fires when the user clicks the BACK button in the browser to return to a page. As a result, database selection values are being reset. Is there some way to identify when the user has returned to the previous page and avoid running this code so that the user's previous selections are still selected?
Old September 28th, 2006, 05:12 PM
Friend of Wrox
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

I suppose you could keep track of pages visited in the Session (since it is user-specific), and store the state things were in either in a database, a file, or the Session. Then if you see that the current page has been visited during the current Session, fill in the values from what you saved at that previous visit.

I suspect there's a better way. <listening...>

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling the BACK button by writing jsp code sumon_24_feb JSP Basics 3 July 14th, 2006 12:41 AM
How to know whick button was clicked. KingArthur Struts 1 February 22nd, 2006 07:12 AM
Determining Which Button Was Clicked BrianWren ASP.NET 1.0 and 1.1 Basics 3 May 5th, 2005 03:24 PM
How to tell which button clicked emily PHP How-To 2 November 30th, 2004 01:35 PM

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