Active Server Pages (ASP) - Counter

Install PageCounter Component

  • Install
    Download IISPageCnt3.EXE and Click [Unzip]

  • Register the component to use
    Copy following strings and paste into [Run] window

    C:\windows\system\regsvr32 C:\Inetpub\iissamples\Components\PageCnt\DLL\i386\PageCnt.dll

    Counter Sample

  • counter.asp
    <HTML>
    <HEAD><TITLE>Page Counter Example</TITLE></HEAD> 
    
    <BODY>
    
    <h1>COUNTER</h1>
    
    <%
     Set MyPageCount = Server.CreateObject("IISSample.PageCounter")
     MyPageCount.PageHit
     HitMe = MyPageCount.Hits
    
     if HitMe = 7 then
    %>
    
    <p>
    You are the lucky <b>7th</b> Customer!!! <BR>
    
    <% else %>
    
    <p>
    You are customer #<%=HitMe%> <BR>
    
    <% end if %>
    
    </BODY>
    </HTML>
    


    Google
    Web www.grape-info.com