ASP.NET Web Page Hit Counter Using a Text File
Category:C#, VB.NET, ASP.NET
Author:Intelligent Solutions Inc.
Version Compatibility: ASP.NET
This demo shows you how to implement a web page hit counter using a text file in ASP.NET. It illustrates usage of the StreamReader, StreamWriter, and File objects in .NET's Common Language Runtime.
Originally developed for .NET beta 1 and beta 2; verified to work on ASP.NET 1.0 on 3/17/2002.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.