我需要一个“全局"的计时器... [英] I need a "global" timer...

查看:71
本文介绍了我需要一个“全局"的计时器...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个全球"的类型计时器,无论有人进入什么页面,它都使我基本上可以在用户访问我网站的整个时间里运行一个时钟.

我一直在使用可用于表单的计时器,但是在有人离开该页面后,我没有看到一种使它继续运行的方法.

我的效果我尝试创建的是一个计时器,只要有人点击我的网站,计时器就会启动,然后每隔X分钟就会触发一次事件.无论他们在站点上的什么位置,都应该发生此事件.

我已经阅读了几篇有关计时器的文章,但老实说,我对VB还是很陌生,我不知道我是否真的需要学习线程"等知识,以获得计时器工作.

链接到代码或文章将不胜感激.

感谢

I'm in need of a "global" type timer that will allow me to basically run a clock the entire time someone is on my site, no matter what pages they go to. 

I've played around with the timer available for forms but I didn't see a way to make it continue to run after someone left that page.

The effect I'm attempting to create is for a timer to start whenever someone hits my site, then every X minutes an event will trigger.  This event should happen no matter where they are on the site. 

I've read a couple articles on timers but to be honest I'm fairly new to VB and I didn't know if I really needed to learn about 'threading' etc, to get a timer to work.

Links to code or articles would be very appreciated.

Thannks

推荐答案

对于网络问题,请尝试下面的任何论坛
[ASP.NET] http://forums.asp.net/
[IE WEB DEV] http://social.msdn.microsoft.com/Forums /en-US/iewebdevelopment/threads

kaymaf
For web question try any of the forums below
[ASP.NET] http://forums.asp.net/
[IE WEB DEV] http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads

kaymaf


这篇关于我需要一个“全局"的计时器...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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