在vb.net中我需要'如何'在web表单计时器上... [英] I need 'how to' on web form timer in vb.net...

查看:96
本文介绍了在vb.net中我需要'如何'在web表单计时器上...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何在Windows应用程序中设置一个计时器,但是有可能每隔1000密耳处理一次事件,而不是处理过多的事件。 sec.s使用

网络表单计时器?我注意到,在我将一个定时器控件拖到我的aspx

页面后,代码页上的声明中没有''勾号'

选项。我怎么能这样做?

谢谢,

Trint


..Net程序员
tr ******** @ hotmail.com


***已发送通过开发人员指南 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!

I know how to set a timer in a windows app, but is it possible to fire
an event, with out too much processing, every 1000 mil. sec.s using the
web form timer? I noticed there''s no ''tick'' in the declairations
choices on the code page after I dragged a timer control over to my aspx
page. How can I do this?
Thanks,
Trint

..Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!

推荐答案

System.Windows.Forms.Timer

有一个属性Interval来设置间隔(以毫秒为单位)

有一个事件Tick,当间隔时间过去时会被提升


" Trint史密斯和QUOT; < TR ******** @ hotmail.com>在留言中写道

news:uT ************** @ TK2MSFTNGP10.phx.gbl ...
System.Windows.Forms.Timer
has a property Interval to set the interval (in milliseconds)
has an event Tick, is raised when interval has elapsed

"Trint Smith" <tr********@hotmail.com> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
我知道如何设置Windows应用程序中的计时器,但是每1000密耳处理一次事件是可能的,而且处理过多。 sec.s使用
网络表单计时器?我注意到在将定时器控件拖到我的aspx
页面后,代码页上的声明中没有''tick''。我怎么能这样做?
谢谢,
Trint

网络程序员
tr ******** @ hotmail.com

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!
I know how to set a timer in a windows app, but is it possible to fire
an event, with out too much processing, every 1000 mil. sec.s using the
web form timer? I noticed there''s no ''tick'' in the declairations
choices on the code page after I dragged a timer control over to my aspx
page. How can I do this?
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



Trint,


您如何期望计时器工作1000毫秒......或每1个

秒?


即使刷新了,你还能做什么呢?你要去页面刷新自己每秒刷新一次吗?单独

回发将占用所有资源至少一秒钟。


你必须记住网络是无国籍的家伙...而且正是因为它在winforms中可能是
,并不意味着在webforms中可能。你有多少网页

经验?


-CJ


" Trint Smith" < TR ******** @ hotmail.com>在留言中写道

news:uT ************** @ TK2MSFTNGP10.phx.gbl ...
Trint,

How do you expect the timer to work ever 1000 milliseconds... or every 1
second?

Even if there WAS a refresh, what are you going to have it do? Your going
to have the page refresh itself every second that someones on it? The
postback alone will tie up all the resources for at least one second.

You gotta remember that the web is stateless dude... and just cause its
possible in winforms, doesn''t mean possible in webforms. How much web
experience do you have trint?

-CJ

"Trint Smith" <tr********@hotmail.com> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
我知道如何设置Windows应用程序中的计时器,但是每1000密耳处理一次事件是可能的,而且处理过多。 sec.s使用
网络表单计时器?我注意到在将定时器控件拖到我的aspx
页面后,代码页上的声明中没有''tick''。我怎么能这样做?
谢谢,
Trint

网络程序员
tr ******** @ hotmail.com

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!
I know how to set a timer in a windows app, but is it possible to fire
an event, with out too much processing, every 1000 mil. sec.s using the
web form timer? I noticed there''s no ''tick'' in the declairations
choices on the code page after I dragged a timer control over to my aspx
page. How can I do this?
Thanks,
Trint

Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



好的,

这是我发现我想做的一个例子:

http://web-1.bidz.com/productDisplay。 .4429742& live = Y


谢谢,

Trint


.Net程序员
tr********@hotmail.com


***通过开发人员指南 http://www.developersdex.com 发送* **

不要只参加USEN ET ...获得奖励!
Ok,
Here is an example I found of what I want to do:

http://web-1.bidz.com/productDisplay...4429742&live=Y

Thanks,
Trint

.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


这篇关于在vb.net中我需要'如何'在web表单计时器上...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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