自动运行网络应用 [英] Running a web app automatically

查看:65
本文介绍了自动运行网络应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net更新Web应用程序.用户进入页面,点击更新按钮,程序开始运行.我们还希望该程序每晚作为计划任务运行.这可能吗?您将如何处理?

谢谢

解决方案

您可以在程序上创建指向Web应用程序页面的快捷方式(例如update.aspx?command = update),然后将服务器的调度程序设置为在您希望的时间运行该快捷方式.

我只建议您使用没有任何内容的页面,并且只响应特定的命令,这样可以降低您不希望页面被绊倒"的风险./p>

I have an asp.net update web app. Users go the the page, hit the update button and the program runs. We also want this program to run as a scheduled task everynight. Is this possible? How would you handle this?

thanks

解决方案

You could create a shortcut on your program to a page on your web app (say update.aspx?command=update) and then have your server's scheduler set to run that shortcut at the time you wish.

I would only recommend that you use a page which has nothing on it and will only respond to a specific command, that way you lower the risk of your page being "tripped" when you don't want it to be.

这篇关于自动运行网络应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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