473,395 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can you tell in ASP if the back button has been pressed?

Hello,

Is there a way to determine if a user has navigated to a page by
clicking the back button? I've got a page that dynamically generates a
form and submits it, the problem being that clicking the back button
has the effect of resubmitting the form. I'd like the back button to
work if at all possible.

Thanks,
Kevin

Apr 2 '07 #1
2 1582
you store a transaction guid in a hidden field. then you store the guid
on the server when posted back. then on a second postback from
browser/firewall/proxy you can detect its happened already.

-- bruce (sqlwork.com)

Kevin Audleman wrote:
Hello,

Is there a way to determine if a user has navigated to a page by
clicking the back button? I've got a page that dynamically generates a
form and submits it, the problem being that clicking the back button
has the effect of resubmitting the form. I'd like the back button to
work if at all possible.

Thanks,
Kevin
Apr 2 '07 #2
Thanks Bruce. How do I store a transaction guid on the server?

On Apr 2, 4:29 pm, bruce barker <nos...@nospam.comwrote:
you store a transaction guid in a hidden field. then you store the guid
on the server when posted back. then on a second postback from
browser/firewall/proxy you can detect its happened already.

-- bruce (sqlwork.com)

Kevin Audleman wrote:
Hello,
Is there a way to determine if a user has navigated to a page by
clicking the back button? I've got a page that dynamically generates a
form and submits it, the problem being that clicking the back button
has the effect of resubmitting the form. I'd like the back button to
work if at all possible.
Thanks,
Kevin

Apr 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Syed Ali | last post by:
Hello, I have 1 HTML form with 4 submit buttons and 10 textfield entry areas. If submit button1 is pressed I need to make sure that all 10 textfield entries have been filled before submitting...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
3
by: pantherteeth | last post by:
I'm writing a little mp3 player shell type thing, and I'm trying to figure out how to determine how long a button has been pressed. For example, if a user clicks the left button, the song should...
2
by: Krista Lemieux | last post by:
Hello, In my form I have a button, and the button_Click function (which gets called when the button is clicked). However the functionality that I have in the button_Click function, needs to be...
3
by: tshad | last post by:
Is there an event that gets fired when the Browsers Back Button is pressed? I want to save the clients entry if they should hit the back button by accident. Thanks, Tom
7
by: mohammed.naghman | last post by:
Hi, I have 2 submit buttons in a jsp page. One of them takes me to page2.jsp and also passes the values enetered to page2.I have a link in the page2 that does a history.back to come to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.