473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Dynamic page hits counter

229 100+
Hi, I was just wondering if anyone could point me in the right direction to an asp hits counter that would work on dynamic pages. All the ones I have tried seem to add to the last count, regardless of if a different page is called. The thing is all my pages come from a database and are plonked into the one page.
Thanks
Richard
Nov 15 '07 #1
2 1253
fran7
229 100+
Hi, I have found this script that does record hits for individual pages.
http://www.sidneyforcier.com/sidneyforcierv2/asp/hitcounter.aspx

This is the code for each page

This page has been accessed
Expand|Select|Wrap|Line Numbers
  1.  <%=GetCurrentHitCount("pagename", true)%> 
times

I am trying to put data from a field in my database in the("pagename", true) bit, with
Expand|Select|Wrap|Line Numbers
  1. <%=rsCard("Aditionaltwo")%>
like so
Expand|Select|Wrap|Line Numbers
  1. <%=GetCurrentHitCount("<%=rsCard("Aditionaltwo")%>", true)%>
It doesnt like asp inside asp however.
Is there a way around this. I need to be able to put the page name there, so that it counts the hits for only that page.

As I am writing I have just realised that the pagename data probably must be there before one arrives at the page and therefore would not work anyway the way I was thinking!!!!!!


If anyone knows a solution to give dynamic pages an individual page hit or knows how to work around this one, that would be great.
Thanks
Richard
Nov 16 '07 #2
jhardman
3,406 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. <%=GetCurrentHitCount(rsCard("Aditionaltwo"), true)%>
Let me know if this works.

Jared
Nov 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roland Ramirez | last post by:
I am trying to monitor the number of visits on various Excel and HTML reports on our website. I would like to create a web page that has the various hit statistics for various URLs. I thought I...
3
by: Roland Ramirez | last post by:
I am trying to monitor the number of visits on various Excel and HTML reports on our website. I would like to create a web page that has the various hit statistics for various URLs. I thought I...
2
by: Girish | last post by:
Hi I have list of products listed from a search criteria, Now I wanna show the client TOP VIEWED LIST OF PRODUCTS or number of hits for each product. So the page hits using the counter...
7
by: Garyrek | last post by:
Hi I have a requirement where I need to make a report for each auto dealer how many hits they got on specified date range, so for each car detail page I increment the counter and total it while...
4
by: Daniel Keller | last post by:
Hello! I'm trying to set up a page system using "dynamic" SSI. That means that I normally use the following on my website: <!--#include virtual="file.inc" --> Now I want to make this...
1
by: zenfor | last post by:
Hi, I have a simple script I found that increments a number in a text file. I was wondering if anyone has a routine that will commify the number. Thank you! =============== <% counter_file...
4
by: tedpottel | last post by:
Hi I'm trying to build a counter that will keep trach how many hits I got and where they came from. In my html pages I have a script of code that loads in an image. This image is a php file. ...
2
by: gumbercules | last post by:
I am designing a site that is regulary updated with new podcasts. I would like to be able to have a counter next to each podcast showing how many hits/listens/plays/views each particular podcast has...
30
by: Paul W Smith | last post by:
I have written a hit counter, which I believe counts the times my page is hit by a user for each unique session by the user. The relevant part of my code is below: If...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.