>I am looking for an way of counting hits of a ASP page with some code in the ASP page.
>
>I know you can do this different ways, but what is the most simple?
2 techniques:
1******
Use a text file where you'll store a value
Load the value with the FileSystemObject in the Application_OnStart sub
Store the value in a Application variable
Increment the value in the Session_OnStart sub
Save the value to the text file in the Application_OnEnd sub
One problem with this technique: if your Web server crash, you loose some hits because you lost the value stored in the Application variable.
2****
Use a database to store the value
Call a store proc in the Session_OnStart sub that will increment the value