Recording how many times a page was visited

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    Recording how many times a page was visited

    I want to record the number of times a page was visite into a sql server
    database. This will be part of the admin stats for the website. Any ideas
    how to do something like this?

    d


  • Jonathan Wood

    #2
    Re: Recording how many times a page was visited

    The simplest way would be to increment a database value from the page's Load
    event. Something more sophisticated would be to use one of the ASP.NET
    global handlers.

    --
    Jonathan Wood
    SoftCircuits Programming


    "Andy B" <a_borka@sbcglo bal.netwrote in message
    news:%23WBRaXmS JHA.5348@TK2MSF TNGP02.phx.gbl. ..
    >I want to record the number of times a page was visite into a sql server
    >database. This will be part of the admin stats for the website. Any ideas
    >how to do something like this?
    >
    d
    >

    Comment

    • Andy B

      #3
      Re: Recording how many times a page was visited

      Is there an example of this for both ways?


      "Jonathan Wood" <jwood@softcirc uits.comwrote in message
      news:ORpHuZmSJH A.4524@TK2MSFTN GP06.phx.gbl...
      The simplest way would be to increment a database value from the page's
      Load event. Something more sophisticated would be to use one of the
      ASP.NET global handlers.
      >
      --
      Jonathan Wood
      SoftCircuits Programming

      >
      "Andy B" <a_borka@sbcglo bal.netwrote in message
      news:%23WBRaXmS JHA.5348@TK2MSF TNGP02.phx.gbl. ..
      >>I want to record the number of times a page was visite into a sql server
      >>database. This will be part of the admin stats for the website. Any ideas
      >>how to do something like this?
      >>
      >d
      >>
      >

      Comment

      • Mark Rae [MVP]

        #4
        Re: Recording how many times a page was visited

        "Andy B" <a_borka@sbcglo bal.netwrote in message
        news:%23WBRaXmS JHA.5348@TK2MSF TNGP02.phx.gbl. ..
        I want to record the number of times a page was visite into a sql server
        database. This will be part of the admin stats for the website. Any ideas
        how to do something like this?
        Is there any reason why you aren't using one of the many (some free) stats
        packages...?



        --
        Mark Rae
        ASP.NET MVP


        Comment

        • Andy B

          #5
          Re: Recording how many times a page was visited

          It has to be designed in house and there isnt any way around it.


          "Mark Rae [MVP]" <mark@markNOSPA Mrae.netwrote in message
          news:u799LRnSJH A.1144@TK2MSFTN GP05.phx.gbl...
          "Andy B" <a_borka@sbcglo bal.netwrote in message
          news:%23WBRaXmS JHA.5348@TK2MSF TNGP02.phx.gbl. ..
          >
          >I want to record the number of times a page was visite into a sql server
          >database. This will be part of the admin stats for the website. Any ideas
          >how to do something like this?
          >
          Is there any reason why you aren't using one of the many (some free) stats
          packages...?

          >
          >
          --
          Mark Rae
          ASP.NET MVP
          http://www.markrae.net

          Comment

          Working...