定时器控制 [英] Timer control

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

问题描述

有人可以帮助我编写定时测试代码。实际上我想在一个Web应用程序中实现

a计时器,它会在特定时间后通过刷新网页自动弹出警报




谢谢

Arun

解决方案

更正:

有人可以帮我编写定时测试代码。实际上我想在一个Web应用程序中实现
a计时器,它会在ASP中的特定时间后通过刷新网页自动弹出警报

。 NET。

谢谢

Arun


这将是一个客户端计时器,它可以使用HTML META

刷新标签或JavaScript(使用setTimeout()方法)。


-

HTH ,


Kevin Spencer

微软MVP

..Net开发人员

你可以带鱼骑自行车,

但需要很长时间,

并且自行车必须*要*改变。


< ar ************* @ yahoo.com>在消息中写道

news:11 ********************** @ g49g2000cwa.googlegr oups.com ...

更正:

有人可以帮助我编写定时测试代码。实际上我想在Web应用程序中实现一个计时器,它会在ASP.NET中的特定时间后通过刷新网页自动弹出警报。

谢谢
Arun



Kevin,

感谢您的回复。我使用元标记来刷新页面。

我的应用程序是一个定时测试。当用户在页面加载时访问应用程序时,我需要捕获当前时间

。一小时后,应用程序应通过比较当前时间与用户开始测试的时间来弹出提示时间已过期的警报。


刷新标签只刷新页面,但我无法比较时间

因为当页面重新加载当前时间更改为最新的

时间很明显,你能给我一个解决方案。


再次感谢

Arun


Can Somebody help me to code a timed test. Actually I want to implement
a timer in a web application which will pop-up an alert automatically
by refreshing the web page after a specific time.

Thanks
Arun

解决方案

Correction:

Can Somebody help me to code a timed test. Actually I want to implement

a timer in a web application which will pop-up an alert automatically
by refreshing the web page after a specific time in ASP.NET.
Thanks
Arun


That would be a client-side timer, which can be achieved with an HTML META
Refresh tag or JavaScript (using the setTimeout() method).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

<ar*************@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...

Correction:

Can Somebody help me to code a timed test. Actually I want to implement

a timer in a web application which will pop-up an alert automatically
by refreshing the web page after a specific time in ASP.NET.
Thanks
Arun



Kevin,
Thanks for your reply. I used the meta tag to refresh the page.
My application is a timed test one. I need to capture the current time
when the user access the application on page load. And after an hour
the application should pop-up an alert saying time expired by comparing
the current time with the time when the user started the test.

Refresh tag just refreshes the page, but I couldn''t compare the times
because when the page reloads the current time changes to the latest
time which is obvious, can you suggest me a solution for this.

Thanks again
Arun


这篇关于定时器控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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