PageHit

The PageHit method increments the hit count for the current Web page.

Syntax

Object.PageHit()
 

Example

The following example uses the PageHit method to increment the number of times that the current Web page has been opened.

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

This Web page has been viewed <%= MyPageCount.Hits %> times.

Applies To

Page Counter Component

See Also

Reset, Hits