Click here to Skip to main content
13,048,011 members (89,991 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I want to see my aspx page visitor and save it on sql server.
Please provide me complete solution ASAP.
Posted 9-Jan-13 20:29pm
Mohd. Mukhtar 10-Jan-13 2:31am
What have you tried so for?
vishnu agarwal 10-Jan-13 2:36am
I want to count my aspx page visitor
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Thomas.TangLin 10-Jan-13 2:48am
first you should recorded the data when visitor visit you aspx page,and then you can use script as:

select visitor_id ,count(1) from table group by vistitor_id order by date desc;

Advanced: if you want to think over Performance ,will think other way。
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Just create a table into database with column id, date and counter. And update counter by one in page load method with where condition on date column.

Check successful update or insert row for first visit.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100