Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Hit counters in aspx

Hit counters in aspx

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matjame
    wrote on last edited by
    #1

    Hello guys, can anyone help me create my own hit counter in aspx. I jus need to knw how many people accessed my page.So Im gona hv a counter on each page. Thanx in advance.

    kagiso

    W N V 3 Replies Last reply
    0
    • M matjame

      Hello guys, can anyone help me create my own hit counter in aspx. I jus need to knw how many people accessed my page.So Im gona hv a counter on each page. Thanx in advance.

      kagiso

      W Offline
      W Offline
      www Developerof NET
      wrote on last edited by
      #2

      matjame wrote:

      I jus need to knw how many people accessed my page.

      for this purpose use the application state variable and on every session start of a user, increment the application variable and decrement it on every session end. This might solve your problem.

      When you fail to plan, you are planning to fail.

      N 1 Reply Last reply
      0
      • M matjame

        Hello guys, can anyone help me create my own hit counter in aspx. I jus need to knw how many people accessed my page.So Im gona hv a counter on each page. Thanx in advance.

        kagiso

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Assign a unique id for each page and store the details in DB. When page loads, increment the entry. If you can store the IP address of the specified user, you can avoid re-inserting the same record when user refreshes the page.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        1 Reply Last reply
        0
        • W www Developerof NET

          matjame wrote:

          I jus need to knw how many people accessed my page.

          for this purpose use the application state variable and on every session start of a user, increment the application variable and decrement it on every session end. This might solve your problem.

          When you fail to plan, you are planning to fail.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          www.Developerof.NET wrote:

          for this purpose use the application state variable and on every session start of a user, increment the application variable and decrement it on every session end. This might solve your problem.

          No this won't. This will give the number of users visiting the site, not page hits

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          1 Reply Last reply
          0
          • M matjame

            Hello guys, can anyone help me create my own hit counter in aspx. I jus need to knw how many people accessed my page.So Im gona hv a counter on each page. Thanx in advance.

            kagiso

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Check out http://www.hotscripts.com/[^]

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups