Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 8th, 2006, 08:32 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
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

  #2 (permalink)  
Old March 13th, 2006, 03:40 PM
Registered User
 
Join Date: Mar 2006
Location: Santa Cruz, , Bolivia.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:09 AM.


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