在创建Global.asax文件定时器 [英] Creating the Timer in Global.asax file

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

问题描述

我想通过创建Global.asax中计时器文件执行StoredProcedure的为埃维一小时,必须加载数据集在广告应用程式(dropdrown或一些asp.net CONTROLE)

I would like to execute a storedprocedure for evey one hour and have to load the dataset in applicaion(dropdrown or some asp.net controle) by creating the timer in Global.asax file.

今天非常的这种发展很新,请任何一个可以张贴在code或提供确切的流什么,我有编码做,如何加载asp.net控件(下拉或列表CONTROLE) 。

Am very very new for this kind of development, please any one could post the code or provide the exact flow what i have to do in coding and how to load the asp.net controls(dropdown or list controle).

感谢你在前进,

推荐答案

预定任务一样,不是一个aspx应用程序的适当使用。

Scheduling tasks like that is not an appropriate use for an aspx application.

不过,也有一些黑客/解决方法可以尝试:

However, there are several hacks/workarounds you can try:

<一个href=\"http://www.$c$cproject.com/Articles/12117/Simulate-a-Windows-Service-using-ASP-NET-to-run-sc\">http://www.$c$cproject.com/Articles/12117/Simulate-a-Windows-Service-using-ASP-NET-to-run-sc

<一个href=\"http://www.west-wind.com/weblog/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive\">http://www.west-wind.com/weblog/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive

<一个href=\"http://www.mikesdotnetting.com/Article/129/Simple-task-Scheduling-using-Global.asax\">http://www.mikesdotnetting.com/Article/129/Simple-task-Scheduling-using-Global.asax

您会好得多创建的Windows服务,或者使用内置的Windows调度。

You would be much better off creating windows service or use the built-in Windows scheduler.

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

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