THIS WEEK'S BACKOFFICE TIP of ZD JOURNALS. For a PREVIEW issue, go to

http://www.zdjournals.com/forms/asp/cuvyeu.htm

THE PAGE COUNTER COMPONENT

One easy way to place a counter on your ASP pages is by using the Page Counter component. This server component provides a simple page counter that you can use on any Web page. The following Web page demonstrates the simplest way to use the counter:

<HTML>
<HEAD>
<TITLE>Page Counter Example</TITLE>
</HEAD>
<BODY>

<%
SET objHitCounter = Server.CreateObject("IISSample.PageCounter")
objHitCounter.PageHit
%>

This page has been visited <%= objHitCounter.Hits %> times.
</BODY>
</HTML>

You will most likely need to download and install this server component, which is still in beta release. You can find the compressed install package and more information on this component at http://www.microsoft.com/windows/downloads/contents/AdminTools/IISPageCounter/default.asp

Comments: