Saturday, September 30, 2006

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...

Share:
Search This Blog
About Me
My Photo

Full Stack Developer, Blogger, Microsoft Mvp, Mentor, Lifelong learner, 12+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC/Core, C#, Angular,Vue.js and node.js
Subscribe to my blog

  

My You tube channel- Please Subscribe
Youtube Video Playlist
My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews