PostRequestHandlerExecute event in global.asa

  • Thread starter Thread starter Darlene Gauthier
  • Start date Start date
D

Darlene Gauthier

I am trying to add some tracking to all of the pages on our site. I
need to be able to access the session object and I want the tracking
to occur after the page has been processed. It looks like the
PostRequestHandlerExecute method is the proper one to use, but it
seems to run twice for each page hit. Does anyone know why this would
happen? Is there some value in the parameters that I could check for
to decide whether I should write out the tracking information or not?

Thanks in advance,

Darlene
 
I'm pretty sure it'll run for any user controls your page is loading also.
You can avoid the double hit by creating a basepage and having all pages
inherit from this page (Which in turn inherits from system.web.ui.page).

You can see a recent discussion on this at:
http://groups.google.ca/[email protected]#link1

Karl
 

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

Back
Top