Hit counters in aspx
-
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
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.
-
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
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
-
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.
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
-
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
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