Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 20th, 2003, 09:21 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default beginner needs guru - hit counter question


Dont shout I'm just a beginner....

Using ASP.NET

What's the best way to implement a simple hit counter
on my home page? Do I just have a database record that each
time the home page fires up - I then increment my database
counter and display the value on the home page ?

Is that how it is done ?
Also - how do I ensure I update the counter when a new
user hits the home page for the first time in a session
and not each time the user navigates back to it from my other
.aspx pages?

Any and all help appreciated.
Chas.
 
Old November 20th, 2003, 09:51 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

For general ideas on how to implement this, take a look at the following articles:

http://imar.spaanjaars.com/QuickDocI...QUICKDOCID=161
http://imar.spaanjaars.com/QuickDocI...QUICKDOCID=164
http://imar.spaanjaars.com/QuickDocI...QUICKDOCID=165

These articles show you how to do this in Classic ASP, but the general principle is the same for ASP.NET.

You won't be able to use the code presented in these articles directly, but you can see what options you have available for counters.

I am working on ASP.NET copies of these articles, which I will post in the near future.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
A Hit Counter, PLEASE HELP !!!!! ARD_40 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2006 06:25 AM
Hit Counter Help! NeilS21 Classic ASP Databases 4 April 29th, 2005 06:59 AM
hit counter gumgak Classic ASP Basics 2 November 2nd, 2003 12:44 AM
Hit Counter mateenmohd HTML Code Clinic 7 September 28th, 2003 07:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.