Results 1 to 3 of 3

Thread: Running a Timer in a Web App

Hybrid View

  1. #1
    Addicted Member
    Join Date
    Nov 2004
    Posts
    149

    Re: Running a Timer in a Web App

    I you have to run the event from your web application there is a timer component in the toolbox under components.

    If you look it up under the index as system.timers.timer, you can check out all its properties and methods, but you would essentially set the interval at which the elapsed event should run and then on page_load start the timer, so every hour the elapsed event would fire and you could do your database check.

    Though the page would have to be up the whole time.

    There might be a better solution for this, but I am quite new to all this myself.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: Running a Timer in a Web App

    Yeh i've got all the code for it, thats no problem, just not sure where the best place to put it is. I wont put it in a form, as the form will not always be up. I do have a place in my one instance of a class, as that is always running, but i'm just not sure if that would be the best regarding performance, threading issues, etc.

    Any other ideas ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width