How to detect page called via back button

G

Guest

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?action=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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top