Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 8th, 2006, 08:32 AM
Registered User
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser back button makes wrong event fire

I have a problem with a form that contains two different events, one button and one dropdown. When I have selected a value in the dropdownlist and redirect to a different page and then click the browser(IE) back button, the dropdown event fires again, even though I click the button and the buttons clickevent should fire. Is there a simple solution to this that I'm missing? I found the exact same problem in the beginner forum, but maybe this is a problem for this forum since there has been no solution posted? http://p2p.wrox.com/topic.asp?TOPIC_ID=40083

 
Old March 13th, 2006, 03:40 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

like you said there is no way to control the back button, I've found some ways to avoid those buttons The one I've like much, because its simplicity, is to put a jscript on the head part od the html in the aspx page
           <head>

               ..........
        <script type="text/javascript">
        for(var i = 0; i<= history.length; i++) {
            history.forward ()
        }
        </script>
           </head>
With that code, every time the user press the IE back button , the IE "jump" to the last page visited, so the user can not see an "older" version of the page

I how it help
Bye

Sergio





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
Browser back button karetaker ADO.NET 2 November 5th, 2004 02:32 AM
Can't fire button event more than 1 time goatstudio ASP.NET 2.0 Basics 4 September 22nd, 2004 07:45 AM
emulating Back browser button badgolfer ASP.NET 1.0 and 1.1 Basics 2 August 19th, 2004 03:05 AM





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