|
-
Mar 4th, 2005, 10:25 AM
#1
Addicted Member
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.
-
Mar 5th, 2005, 11:31 AM
#2
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|