PostRequestHandlerExecute event in global.asa

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default PostRequestHandlerExecute event in global.asa

    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
    Darlene Gauthier Guest

  2. Similar Questions and Discussions

    1. Getting Error: Event Type 'flash.event:event' is unavailable ?????
      Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however...
    2. what is Global.asa event?
      Is this some kind of test that you're doing? It look like it. Why don't you do and look in the documentation? http://msdn.microsoft.com/library ...
    3. Global Error handling in Applicatio_Error() of Global.asax
      Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in...
    4. Assign Javascript event handler function dynamically to a Flash object event?
      I have a Flash player object embedded in one of my web pages. I want to assign code to the OnReadyStateChange event for the object. Every...
    5. Help Please: 'Warning 5001 global variable "iF_timer" already defined in global scope
      Hi there, I have just started to get this error: 'Warning 5001 global variable "iF_timer" already defined in global scope The variable name...
  3. #2

    Default Re: PostRequestHandlerExecute event in global.asa

    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:
    [url]http://groups.google.ca/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=1cc5497b21b056a&seekm=lp6dnTb1noG A1I6iXTWJgA%40comcast.com#link1[/url]

    Karl

    "Darlene Gauthier" <dglfgauthier@yahoo.com> wrote in message
    news:6f077bb7.0307230523.1176e0fd@posting.google.c om...
    > 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

    Karl Seguin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139