i want maintain hits on my webpage.
when user visit on that page than count the page visit and show in label
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manpreet SinghRank #15 · 50.7K reputationPosted Oct 6, 2014, 7:55 AM EDT
You can store the value as 0 and on page load add the value +1, so everytime the page loads it will add up the hits on your page.
Thanks,
Manpreet
Abhishek KumarRank #510 · 4.8K reputationPosted Oct 6, 2014, 8:50 AM EDT
Please follow a nice article on hit counter.
http://www.aspnettutorials.com/tutorials/database/hit-cntr-asp4-cs/
Let me know if you want more information on this.
Abhishek
Aman Gupta92 reputationPosted Oct 13, 2014, 12:02 AM EDT
i want to maintain the previous value also.