在Web应用程序计时器 [英] timer on web app
问题描述
我希望我的网站(C#)将调用异步每隔15分钟到一些C#函数 我该怎么办呢?
i want my website(C#) will call async every 15 min to some c# function how can i do that?
感谢
推荐答案
有一个标准的阿贾克斯(利用客户端的JavaScript)定时器控制那就是净Ajax框架的一部分它包含了所有之前的Ajax控件是可以作为一个单独的下载版本ASP.Net 3.5了。
There is a standard Ajax (utilising client side Javascript) Timer Control that is part of the .Net Ajax Framework which is included with all versions of ASP.Net 3.5 up, prior to that the Ajax controls were available as a seperate download.
从MSDN库定时器控制概述:
微软的Ajax Timer控件执行回发定义的时间间隔。如果您使用Timer控件与UpdatePanel控件,您可以启用在定义的时间间隔部分页面更新。您还可以使用Timer控件后整个页面。
The Microsoft Ajax Timer control performs postbacks at defined intervals. If you use the Timer control with an UpdatePanel control, you can enable partial-page updates at a defined interval. You can also use the Timer control to post the whole page.
这篇关于在Web应用程序计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!