NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes

Visitor Rating

Creating an ASP-driven Page Counter for HTML Pages
2500 Creating an ASP-driven Page Counter for HTML Pages http://www.4guysfromrolla.com/webtech/041801-1.shtml examines a technique to provide dynamic content generated from an ASP page onto a static HTML page. Specifically we needed to display a page counter on a number of static HTML pages. This article discusses how we accomplished this. ASP > Tips and Tutorials > Counters Oct 10, 2006

Write a Review   Add to My Favorite   Refer it to Friend   Report Broken Link  

Bookmark Creating an ASP-driven Page Counter for HTML Pages:


Other links at ASP > Tips and Tutorials > Counters
What's behind an image? Just about anything you there to be including a db. A typical image tag () downloads an image to be processed by the browser an image tag that references an active server page () can do most anything and output an image to be displayed as the final output to the user. The following example will add one to an Access db (to count the number of impressions). The Access db will also add when the impression occurred automatically and redirect will send the user to an image to be displayed in the browser. Note the url in the output example. To view the current impression count from the Access db click
Category:

This code snippet shows how to show how many active users there are on your site , this is quite widely used on the internet.

using your favorite text editor create the file global.asa and enter the code below
Category:

Learn how to use global.asa to display the number of users visiting your site. This tutorial can be broken down into two sections, global.asa, and numvis.asp. Before you can begin this tutorial, make sure your host supports global.asa.
Category:

This is a more accurate counter than our previous example , in this example the count only gets incremented once per session . This means your count will be more accurate if you want it to be that is.

Create a txt file and put your starting number in it . Then copy the code snippet below where you want the counter to display on your page.

In the example below the counter.txt is placed in the same directory as this page , if you put the txt file elsewhere remember and alter the Server.MapPath part of the code.
Category:

Count.asp creates a text file to write the numbers of current users. When a new user comes on the site, Count.asp reads old users count from text file, updates the value by one, and stores the new count value back in the text file. The new count value is also stored in a Session Variable so you can use that Session Variable on different pages to display current user count with the following code
Category:




Main Category
200
2047
830
286
175
1804
1573
913
1177
7596
70
919
60
2247
175

Join Mailing List
Joining mailing list will entitle you to receive occasional emails informing you of news and updates to the site and any special offers that may be of interest to you.



Top 10
Directory Statistics

Links: 20048
Categories: 1275
Registered Users: 789
Mailing List Subscribers: 2049
Unique Outgoing Hits: 234591

Pagerank Statistics
PR 10
1 site(s)
PR 9
9 site(s)
PR 8
53 site(s)
PR 7
201 site(s)
PR 6
645 site(s)
PR 5
1678 site(s)

PHP News