Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
I want to create a scheduler in framework 2.0 . suppose i want to run the code having in page_load event of a file scheduledcode.aspx.vb at daily 7pm..
how can create this problematically. Please Suggest
and remember i dont want to use windows scheduler.. i just want to have scheduler form the server
Posted 2-Mar-12 1:54am
Edited 2-Mar-12 1:58am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have your app minimized to the Systray, and have a thread polling the time every minute (or more often, depending upon the margin of error on exact time you are willing to take).
Balmukund Dewangan at 2-Mar-12 8:11am
Sorry i dint get you.. i have the requirement of sending mail daily.. at any time. and mail contains dynamic data from database... please suggest
ChandraRam at 2-Mar-12 8:15am
Well, if you can't use the Windows task scheduler, you should have your app running all the time. Since you do not want it to interfere with other apps that the user may start, you should have it minimized to the system tray. The polling (checking) for current time is so that your app can perform the specified task at the required time. Code samples for all of these tasks are available out in the interweb.
Balmukund Dewangan at 2-Mar-12 8:47am
Actually.. earlier i was working on coldfussion. in coldfussion there is scheduler by which we can schedule a task on server by any coldfusion file at specific time and interval. and then scheduler runs all the codes in the given(coldfusion file) file... so i want such functionality in
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Rate this: bad
Please Sign up or sign in to vote.

Solution 4

If you want it to run every day at a certain time, your best choices are
0) Write a Windows service and put the scheduling code into it.
1) Wite an application and use the Windows Scheduler to run it.
If it were me (and it has been several times), I'd go with the Windows service.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 455
1 Sergey Alexandrovich Kryukov 312
2 DamithSL 179
3 King Fisher 179
4 Peter Leow 154
0 OriginalGriff 240
1 Maciej Los 95
2 Sascha Lefévre 85
3 King Fisher 70
4 F-ES Sitecore 55

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 2 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100