Hi all,
I have developed my own website.
I need to add a counter that tells the number of visitors
to my website.
can u plz help how to do.
I know only a little about sessions since i dont have references.But
Dont worry I will understand your codes and explanations
with love
Embeza
Embeza
0
Light Poster
Recommended Answers
Jump to PostI would instantiate an application variable in the application on start pulling the value from whereever it is saved
Increment it in session onstart
Save it back to whereever in application onend
Jump to Postwell where are you going to store this variable? database, file?
Jump to PostAs you wanting to store this in the Database?
You could us an old CGI standard? Or you could do something like this website shows (writing to a text file).
http://www.c-sharpcorner.com/Code/2002/Aug/HitCounterAspNet.asp
or another example
Jump to PostHi there,
I have given you the tools to do this. Give it a try and if you have specific problems I will help you with it. The code to do this is right there in the links I provided.Another one method is this (not the most elegant):
…
All 14 Replies
campkev
0
Posting Pro in Training
Embeza
0
Light Poster
campkev
0
Posting Pro in Training
Paladine
138
Master Poster
Team Colleague
Embeza
0
Light Poster
Paladine
138
Master Poster
Team Colleague
AliAbbas
0
Newbie Poster
Embeza
0
Light Poster
nunnakk
0
Newbie Poster
campkev
0
Posting Pro in Training
Embeza
0
Light Poster
plazmo
1
Posting Whiz in Training
ManicCW
3
Junior Poster in Training
jeju
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.