Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Counter

Status
Not open for further replies.

BLBurden

Technical User
Jan 25, 2003
236
US
I have enter the below hit counter on a Window 2003 server and it will not work. The error message is Page cannot be displayed in web site.
But when I put it on my local PC it work fine. Can anyone tell me why.

Thanks

<%
Dim lngHits
Dim objCounter

Set objCounter = Server.CreateObject("MSWC.PageCounter")
objCounter.PageHit
lngHits = objCounter.Hits
Set objCounter = Nothing
%>



BLB[elephant2] - Always Grateful
A good friend will bail you out of jail. A true friend will be sitting at your side saying, &quot;Boy - didn't we have fun?&quot;
 
And you're asking this in the javaScript forum because?

There's an asp forum here - it's forum333.

<marc>
 
Because I did not know where to answer it.

BLB[elephant2] - Always Grateful
A good friend will bail you out of jail. A true friend will be sitting at your side saying, &quot;Boy - didn't we have fun?&quot;
 

Given that the ASP code you've shown is written in VBScript, that would be a better forum to look in than a totally unrelated one, I would have thought.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
As I said before billyray, I just didn't know what forum to ask in. I am sorry for posting it here please forgive - someday I will know where thing all go.

BLB[elephant2] - Always Grateful
A good friend will bail you out of jail. A true friend will be sitting at your side saying, &quot;Boy - didn't we have fun?&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top