Page Counter in ASP 3.0

Lots of guys had done programming for page counter for a site.

I found a interesting example on IIS 5.1 documentation. It is

very easy and very cool. You can developer your page counter

with 2 or 3 line of code in asp 3.0.

Following are the code:


<%

Set MyPageCounter = Server.CreateObject("MSWC.PageCounter")

HitMe = MyPageCounter.Hits

Response.Write("Total Count:" & HitMe)

%>


Thats it your counter is ready.


Happy Programming...

Comments

Popular posts from this blog

How to create Rest API(Web API) with ASP.NET Core 1.0

Creating PDF with ASP.Net MVC and RazorPDF

Solution: gulp is not recognized as internal or external command- Visual Studio