473,587 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to detect page called via back button

I have an aspx page that normally gets called via an HTTP Post from another
web page.

For example, the calling page (page1.aspx) calls page2.aspx with a
querystring from javascript like so:

http.open('post ', 'page2.aspx?act ion=generate');

When page2.aspx loads, the action=generate tells the page to begin
performing a process that takes considerable time.

My problem comes into play when the user leaves page2.aspx but comes back
because he hit the browser's back button. In this case, I don't want
page2.aspx to execute the time consuming process. However, I am unable to
detect the difference? The querystring still returns action=generate . Is
there a way for me to do this?

Your help will be appreciated.

--
Jerry J
Jan 25 '07 #1
1 11125
"Jerry J" <Je****@discuss ions.microsoft. comwrote in message
news:F9******** *************** ***********@mic rosoft.com...
Your help will be appreciated.
Google is your friend:
http://www.google.co.uk/search?sourc...ct+back+button
Jan 25 '07 #2

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

Similar topics

6
2141
by: Rich | last post by:
Am just beginning to use javascript. I have some pages that can be arrived at from more than one other page. Yes, the user can use the back button but I'd like to have a back link at the bottom of the page. Thought there would be a url in referrer but it seem to be empty.
3
1968
by: Dennis Allen | last post by:
Hi. On my online ordering form I use browser cookies to keep track of user items. My confirmation page reads: "If any of this information is incorrect, please go back to the order form and change it. We thank you for your patronage.". Question. At what point will I be able to delete my cookies? If I delete them before posting the...
12
10156
by: VB Programmer | last post by:
I know some sites will display the following message if you click on the BACK button in your browser. How do I implement this feature? Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically...
1
2882
by: James | last post by:
I'm getting the Warning: Page has Expired message when I hit the back button on my browser. I realize why this is happening, but ultimately this is going to severely annoy our client. Is there a *decent* workaround? Basically I have a DataGrid that has a bunch of checkboxes in it. These checkbxoes control a DataSet in Session memory and...
1
1503
by: yasin | last post by:
is it possible that pressing "previous page"(back) button of web browser by code ?
1
1837
by: Oscar Madrid | last post by:
Hi.. Mi aspx use many controls, then click "next" and i got a "Preconfirmation Page", if the user needs to correct a mistake, there is a "Back Button" in mi aspx, wich must go back to the previous page, but with the values previously written, because the user doesn't have to write all once again, but I got that "the page has expired". Is...
1
2166
by: ARAVIND999 | last post by:
PLEASE SEND THE SOURCE CODE FOR THE ABOVE MENTIONED STATEMENT.(i.e., HOW TO EXPIRE THE PAGE WHEN BACK BUTTON IS PRESSED)
1
3472
by: Rob | last post by:
I know this is an old one, considering how many posts I found on it but I just wondered if any best practises had popped up recently, especially as Ajax has increased JavaScript and DHTML's importance. I'm writing a database application. I like pop-up boxes so I've implemented one on my webpage using a floating DIV. The logic goes like this:...
12
8100
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell me how to do this? I thought perhaps there would be some kind of special meta tag that says something like "exclude me from browser's history", but...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.