如何找出没有用户访问该网站 [英] How to Find out the no of users visit the site

查看:117
本文介绍了如何找出没有用户访问该网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找出没有用户访问该网站并在登录用户后访问哪些页面存储在Sql server数据库中的数据



请回复此帖问题

How to find out no of users are visit the website and after Login the user which pages are they visited that data stored in Sql server database

Kindly reply this question

推荐答案

好吧,如果他们正在登录,你只需在用户登录时将记录写入表格。



对于他们访问的页面,您必须为当前会话中访问的每个唯一页面插入一个记录(假设这是您所需要的) - 所以简单在每个页面最初加载时运行一些插入SQL,存储该用户,页面的一些标识符,可能还有日期和时间。
Well, if they are logging in you can simply write a record to a table when the user logs in.

As for which pages they visit, you would have to insert a record to a table for each unique page visited in the current session (assuming that is what you require) - so simply run some insert SQL when each pages is initially loaded, storing that user, some identifier for the page and, probably, the date and time.


在sql中为用户创建一个表..

当用户登录

发送查询到sql

你可以在asp.net轻松实现

例如

插入用户(user_name,姓氏,电话号码)值(''ali'',''xxx'',''55 5555555'')

然后你可以获得用户编号
create a table in sql for users..
and when a user sign in
send a query to sql
you can do it in asp.net easily
for example
insert into users ( user_name, surname , phone number) values (''ali'', ''xxx'', ''555555555'')
then you can get user number


这里有一些很好的文章 -

1. 跟踪用户活动 [ ^ ]。

2. ASP.NET中的页面跟踪 [ ^ ]。

3. 如何在ASP.NET中跟踪您网站的访问者。 C# [ ^ ]。

4. 存储用户配置文件 [ ^ ]。



只需通过它们并尝试实现......
Here are some nice articles for you -
1. Tracking User Activity[^].
2. Page Tracking in ASP.NET[^].
3. How to track visitors to your site in ASP.NET & C#[^].
4. Storing User Profiles[^].

Just go through them and try to implement...


这篇关于如何找出没有用户访问该网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆