Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Global Timer in Asp.net

Tags:

c#

asp.net

I would like to have a timer for an ASP.net application that will kick off every Sunday night and perform something (update a table in the database). However, I really don't want to write up a service that has to be deployed on the server in addition to the web application. Is there a way to accomplish this easily? Perhaps using a Global.asax file?

like image 219
Darwyn Avatar asked May 28 '09 20:05

Darwyn


1 Answers

It seems that the best solution was to use this technique. If I had more control over the server I would probably write up a console app to take advantage of scheduled tasks.

like image 161
Darwyn Avatar answered Oct 07 '22 00:10

Darwyn