Question about autorun some code.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lichaoir

    Question about autorun some code.

    I'm writing a log system for my website. I want to run some
    functionality everyday, let's say, read some data from files and store
    it into database. How do I implement this? Someone had told me to use
    the system service, is there any other way? Shall I use global.asax
    and System.Threadin g.Timer?

    Thanks for your discussions and answers!
  • Eliyahu Goldin

    #2
    Re: Question about autorun some code.

    Web applications run in response to user requests. They are not good for
    automatic tasks.The simplest way is to make a scheduled task in windows. It
    could be a batch file or an exe, console or windows forms. Windows provides
    all scheduling.

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    "lichaoir" <lichaoir@gmail .comwrote in message
    news:ccbd639c-fa60-4162-9daa-118ee1650951@e2 5g2000prg.googl egroups.com...
    I'm writing a log system for my website. I want to run some
    functionality everyday, let's say, read some data from files and store
    it into database. How do I implement this? Someone had told me to use
    the system service, is there any other way? Shall I use global.asax
    and System.Threadin g.Timer?
    >
    Thanks for your discussions and answers!

    Comment

    Working...