Name

PageHit — objPgCntr .PageHit()

Synopsis

Increments the hit counter for the current web page.

Parameters

None

Example

<%
Set MyPageCounter = Server.CreateObject("MSWC.PageCounter")
    MyPageCounter.PageHit

lHits = MyPageCount.Hits
If lHits > 0 Then
    Response.Write "This web page has been viewed " & lHits & " times."
End If
%>

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.