求一个asp.net计数器 在线等

悬赏分:20|
类似于检测访问人数的计数器 可以后台修改数值 随访问人数数值递增 (同一时间段内同一IP多次访问数值只加1) 请帮我写出代码 不要在网上随便粘贴一个 技术器的过来 谢谢 我用的VS2008+SQL2005
知识库标签: |列兵
asp和ASP.NET是微软的脚本语言,
JSP是用JAVA来实现的网页的脚本语言
PHP.一般多用于阿帕奇,比较常用,多运行于LINUX下
为最佳答案评分?
100% (1)
不好 0% (0)
(目前有 1 个人评价)

其 他 回 答共4条

1楼

网站计数器(.net),希望对你有用。http://www.systhinker.com/html/10/n-19410.html
知识库标签: 计数器   |列兵

2楼


基于你的问题求一个asp.net计数器 在线等,
我们可以为你提供一份适用于初学者的代码,
有进一步需求,可以我们联系,
联系我们需要提供问题和联系方式,
有可能帮你,但肯定救急,
使用百度_Hi给我留言,
此回复对于所有需求和和来访者有效,
ES:\\2E604FAE47420DDC5D8BC7ED94D46DEF
知识库标签: 计数器   |列兵

3楼


表:t
id tme ip cishu
sql语句():
create proc p
@ip varchar(50),
@time varchar(50),
@cishu int output
as
declare @counts int
declare @count2 int
Select @count2=count(*) from t where id=1
if @count2<=0 begin
insert into t values(@ip,@time,1)
end
else begin
select @counts=cishu from t where ip like @ip and id=1 or tme like @time and id=1
if @counts>0 begin
update t set ip=@ip,tme=@time,cishu=@counts+1 where id=1
end
end
select @cishu=cishu from t where id=1
go
drop proc p
执行
declare @cc int
exec p '192.168.1.2','2010.02.04' ,@cc output
select @cc
知识库标签: |列兵

我来回答这个问题

立即登陆回答获取会员积分,提高用户级别
友情链接:
Copyright © 商名网 All Rights Reserved.