473,396 Members | 2,018 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,396 software developers and data experts.

Recording how many times a page was visited

I want to record the number of times a page was visite into a sql server
database. This will be part of the admin stats for the website. Any ideas
how to do something like this?

d
Nov 19 '08 #1
4 1689
The simplest way would be to increment a database value from the page's Load
event. Something more sophisticated would be to use one of the ASP.NET
global handlers.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I want to record the number of times a page was visite into a sql server
database. This will be part of the admin stats for the website. Any ideas
how to do something like this?

d
Nov 19 '08 #2
Is there an example of this for both ways?
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OR**************@TK2MSFTNGP06.phx.gbl...
The simplest way would be to increment a database value from the page's
Load event. Something more sophisticated would be to use one of the
ASP.NET global handlers.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>I want to record the number of times a page was visite into a sql server
database. This will be part of the admin stats for the website. Any ideas
how to do something like this?

d

Nov 19 '08 #3
"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I want to record the number of times a page was visite into a sql server
database. This will be part of the admin stats for the website. Any ideas
how to do something like this?
Is there any reason why you aren't using one of the many (some free) stats
packages...?
http://www.google.co.uk/search?sourc...tatistics+free
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 19 '08 #4
It has to be designed in house and there isnt any way around it.
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>I want to record the number of times a page was visite into a sql server
database. This will be part of the admin stats for the website. Any ideas
how to do something like this?

Is there any reason why you aren't using one of the many (some free) stats
packages...?
http://www.google.co.uk/search?sourc...tatistics+free
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 19 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anita C | last post by:
Hi, How cookies can be used to set and then determine the last page visited by a person browsing a particular website ? Also the page last visited is loaded in an iframe, so the page last visited...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
4
by: Tim Marsden | last post by:
Hi, If I navigate from Page1 to Page2 then to Page3, using the response.redirect. When the user press the Back button, I what then to go to Page 1 and start again, not Page2. I dont want the...
3
Bhanu Murthy
by: Bhanu Murthy | last post by:
Dear Members, I shall be thankful, if any one can guide me, how many have people visited my web site. A record of name, date and time visited the web site is also to be recorded for short time....
4
by: vanderschoork | last post by:
Hi, I'd like to record how many times an Access database I've created is opened. Ideally I'd like to record the date\time the user opens it and their user name into a separate table in the...
9
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App...
8
by: Spence | last post by:
My web site is built using ASP.NET, the host supporting .NET 3.5, SQL Server Express and Access. I want to start collecting some visitor stats, in particular OS and Browser used, pages visited,...
2
by: PWS | last post by:
Hi all, I developed an online learning website where each student has his own username/password and they can view course materials and take tests online. I did that in PHP and PostgreSQL. ...
3
oranoos3000
by: oranoos3000 | last post by:
hi i'm a beginer javascript would you please help me i d like to findout this page has next page or previous page in history object i use this line of code if(window.history.length>0) and with...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.