<%@ Application Language="VB" %>
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("mydate") = DateTime.Today.Date.ToShortDateString
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("Hits") = Application("Hits") + 1
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Well thats up to you to decide.
Usually db table can be used in cases if you require to check later on as to how many people are hitting your application on a per week or any other duration to keep a tab.
So you can have a date field along with the count for this purpose.
If not, I would suggest go for a text field if you simply want to show the content on the
page and don't want to keep track of anything.
Application_Start : Retrieve the last written value from database and update application variable.
Session_Start: Increment the variable.
Session_End: This is not useful in your case. This helps in cases if you want to display how many users are currently online. eg.Forums in DW.
Application_End : Write back the application variable in database.
If you want to maintain history of visits on a daily basis, you can as well add a new row every time along with date to your table and while retrieving get the last inserted row based on a unique value (max identity column or last updated date).