Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to do site hit counter in asp.net without losing count when server restarted.
Posted

Hello Vijay,

have a look at this code project article.

Regards,
 
Share this answer
 
v2
Comments
Vijay M 19-May-14 2:14am    
This is not working for me.
Vijay M 19-May-14 2:15am    
Is there any way to maintain count with textfile with Global.asax
Prasad Khandekar 19-May-14 3:32am    
Hello,

Look at the updated solution, the second link is what you are looking for.

Regards,
you can use application variable like session in you application. use as a counter at first page of your website.
 
Share this answer
 
Comments
Vijay M 21-May-14 5:22am    
what my requirement is count of visitors to website without losing count when the server has restarted.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900