在Web服务中定期执行任务(asp.net) [英] Perform task in regular intervals in web services( asp.net )

查看:81
本文介绍了在Web服务中定期执行任务(asp.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要每天在我的网页上生成报告。报告必须自动生成。

我搜索了很多...但我仍然无法得到明确的想法。任何帮助,非常感谢的想法。





发布一些链接,参考资料等...

I need to generate report every day in my web page.The report must be generated automatically.
i googled a lot ...but still i can't get clear ideas. any help, thoughts greatly appreciated.


post some links,references etc...

推荐答案

您可以设置一个计时工作,例如一个会生成每日报告的网址。 chron作业在Web服务器上设置,您可以设置时间跨度(每小时,每天等)来调用URL。



或者,您可以在Global.asax文件中设置一个触发器(例如Application_BeginRequest事件),它将检查当天的报告是否已创建。如果没有,您可以调用创建报告的函数。
You can set a chron job, e.g. a url that will generate the daily report. The chron job is set at the web server, and you can set the timespan (every hour, every day, etc) to call the url.

Alternatively, you could set a trigger in the Global.asax file (e.g. the Application_BeginRequest event) where it will check if the report of the day is created or not. If not, you could call the function that creates the report.


这篇关于在Web服务中定期执行任务(asp.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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