Page Visits

Discussion in 'ASP .Net' started by Steve, Nov 13, 2008.

  1. Steve

    Steve Guest

    Hi,
    I am trying to get the page that the user visits.
    I am using Request.ServerVariables("SCRIPT_NAME") in the Global.asax file.
    Right now I have it on the Application_PreRequestHandlerExecute event but
    have also tried Begin and End Request with the same results.

    Is there anyway (or better method) to get just the page and not every pic or
    folder associated with the page?

    Thanks
    Steve, Nov 13, 2008
    #1
    1. Advertising

  2. Is it for sometime of statistics or for your program logic.

    If it is the former, I would just use the IIS Log files instead and not
    bother adding any extra load to the application

    Regards,

    Trevor Benedict
    MCSD

    "Steve" <> wrote in message
    news:...
    > Hi,
    > I am trying to get the page that the user visits.
    > I am using Request.ServerVariables("SCRIPT_NAME") in the Global.asax file.
    > Right now I have it on the Application_PreRequestHandlerExecute event but
    > have also tried Begin and End Request with the same results.
    >
    > Is there anyway (or better method) to get just the page and not every pic
    > or folder associated with the page?
    >
    > Thanks
    >
    >
    >
    Trevor Benedict, Nov 14, 2008
    #2
    1. Advertising

  3. Steve

    Hillbilly Guest

    //search
    page class site:msdn.microsoft.com

    "Steve" <> wrote in message
    news:...
    > Hi,
    > I am trying to get the page that the user visits.
    > I am using Request.ServerVariables("SCRIPT_NAME") in the Global.asax file.
    > Right now I have it on the Application_PreRequestHandlerExecute event but
    > have also tried Begin and End Request with the same results.
    >
    > Is there anyway (or better method) to get just the page and not every pic
    > or folder associated with the page?
    >
    > Thanks
    >
    >
    >
    Hillbilly, Nov 14, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alberto

    count visits

    Alberto, Oct 30, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    562
    Scott M.
    Oct 30, 2003
  2. Jeff

    logging website visits, how??

    Jeff, Mar 14, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    387
    Juan T. Llibre
    Mar 15, 2007
  3. K.
    Replies:
    4
    Views:
    359
  4. fulio pen
    Replies:
    9
    Views:
    451
    William Gill
    Sep 28, 2007
  5. Terry

    Tracking page visits

    Terry, Jan 5, 2008, in forum: Javascript
    Replies:
    8
    Views:
    120
    Jeremy J Starcher
    Jan 8, 2008
Loading...

Share This Page