Thanks but I am obviously doing something wrong. <BR>After entering this code :<BR><%<BR>Set MyPageCounter = Server.CreateObject ("MSWC.PageCounter")<BR>HitMe = MyPageCounter.Hits<BR>If HitMe = 10 Then <BR>%><BR>You are the lucky 10th customer !!! <BR><BR><% Else %><BR>Sorry, you are customer #<%= HitMe %> <BR><BR><% End If %><BR><BR>I get this error Server.CreateObject failed.<BR>I have got a basic idea that it is the "MSWC.PageCounter" that is causing the error, but do not know how to correct it. <BR>I have tried to use a hit counter with front page, but it is not working, that is why I would like to put a simple hit counter on my home page for my website using ASP.<BR>Please help.
It looks as though the MSWC.PageCounter object isn't installed on your server.<BR><BR>You are going to need to either write your own or have the server administrator install the MSWC.PageCounter object.<BR><BR>-Doug