How to Schedule in WebApplicaiton

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have a web application.
How can I let my program do something (for example mail to user) every
Friday?
 
Sahil is correct, and any or all of his suggestions are the best ones, but
you could set a timer in your web application using System.Timers and check
the date on the Elapsed event.

The drawback is that if the web application is not running, the event will
not fire. If your web application is accessed regularly, this might work for
you. If your web application is seldom or intermittently used, you can't be
sure this will happen in a timely fashion.


--
Dale Preston
MCAD C#
MCSE, MCDBA
 
Back
Top