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  

Browse a Listing

Subscribe to this category

Top > ASP > Tips and Tutorials > Counters

Popular Tags

Free Script links
Sort By :
The following ASP code will allow you to Count and Display the amount of visitors that are currently on or viewing your website.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 13 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 2 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 4 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Do you want to monitor what is a number of current users on your website? You can use Win32_PerfRawData_W3SVC_WebService object.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 12 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

create a text file in note pad, called 'hit_count.txt' containing the digit 0, and save it in the same directory as you are going to place the page containing the hit counter script (make sure there are no other characters in the file).
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 9 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 3 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 6 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 2 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

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:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Jun 19, 2007 Hits: 7 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Category Jump :