Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a scheduler in vb.net 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 vb.net server
Posted
Updated 2-Mar-12 0:58am
v2

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).

HTH
 
Share this answer
 
Comments
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 vb.net
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900