Click here to Skip to main content
13,140,231 members (47,749 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 0:54am
Updated 2-Mar-12 0: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 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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 2 Mar 2012
Copyright © CodeProject, 1999-2017
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