July 2000
Intermediate to advanced
492 pages
14h 53m
English
Reset —
objPgCntr.Reset([
strPathInfo
])
Resets the page counter for a web page. Once called, the page count for the page is reset to zero in the Page Count hits file.
strPathInfo
A string value that represents the virtual path and filename for the
page whose hit count you wish to reset. If you do not include a
strPathInfo argument, the Page Counter
object will reset the count for the current page to zero.
<%
' Declare local variables.
Dim objPgCntr
Dim lngHitCount
' Instantiate a Page Counter object.
Set objPgCntr = Server.CreateObject( _
"MSWC.PageCounter")
' Reset the hit count for the home page.
objPgCntr.Reset("/Apps/Homepage.asp")
. . . [additional code]%>
If the hits file becomes corrupted or is deleted, the hit counts for all pages are essentially reset.
Read now
Unlock full access