Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an ASP.NET intranet web application that provides short quizzes to the users in the company. I want now to count the number of all visitors to the website either they took some quizzes or just come to the website and read some information like downloading the newsletter or reading some general information.

How to do that? Should I have a special table in the database for this thing?

Also, it will be very helpful if there is any helpful free tool like Google Analytics. As you know, the policy of the company doesn't allow to use the Google Analytics.
Posted

You can use to keep incrementing over application restarts, you'll need to store the value somewhere - in a database or a file somewhere, and load that value up when the application starts.
Reference Link :- Count Number of Visitors in WebSite using ASP.Net and C#[^]
 
Share this answer
 
Comments
Amir Mahfoozi 19-Nov-11 14:40pm    
+5
RaviRanjanKr 19-Nov-11 14:42pm    
Thanks :)
Initialize a application variable in global.asax and increment it in session start. You can display this application variable on your website.
 
Share this answer
 
v2
Comments
RaviRanjanKr 21-Nov-11 2:25am    
A suggestion :- Its not a Good practice to use short text like u Instead of you while answering or questioning. Please avoid it.

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