Hit count using ASP.net

This hit count uses Date function, timefunction and some application variables. The below code is used to count of hits in a page.


≪%
Dim x, y, temp, serv, D, hits
x = Trim(day(date()))
D = Application( "serv" )
If D = x Then
Application( "hits" ) = Application( "hits" ) + 1
Else
Application( "hits" ) = 1
End If
y = x
temp = y
Application( "serv" ) = temp
%>
There are <%=Application( "hits" )%> hits to this page.


Comments

Author: devi20 Aug 2008 Member Level: Silver   Points : 0

how to disable menuitem in menuctrl

Author: Raghav21 Aug 2008 Member Level: Gold   Points : 0

Good article Unlike others

Raghav



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: