Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 2-Mar-12 1:54am
Edited 2-Mar-12 1:58am
v2
Rate this: bad
good
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).
 
HTH
  Permalink  
Comments
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 vb.net
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
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.
  Permalink  

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



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