473,796 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

start actions at a specific time

Greetings

I am working on a Senior Project for school. It is a simple ASP.NET on
line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but
time the query for the database to get the list of users.

My initial idea is to have a small class that would have a timer running
in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am
I missing something simpler and better. I am a great believer is KISS
(Keep It Simple Stupid)

Thanks

Bob

Nov 15 '05 #1
2 2918
Bob
Have you considered doing a scheduled task. You can do this from Control Panel and Scheduled Tasks and create a new task. The beauty of this approach is that your application is not burdened with making the decision of when to run. You can delegate that task to the "Scheduled Tasks" in windows

With Regards

Deepa
[I code, therefore I am
----- Bob Cummings wrote: ----

Greeting

I am working on a Senior Project for school. It is a simple ASP.NET on
line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but
time the query for the database to get the list of users

My initial idea is to have a small class that would have a timer running
in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am
I missing something simpler and better. I am a great believer is KISS
(Keep It Simple Stupid

Thank

Bo
Nov 15 '05 #2
Deepak has the right idea, Robert. One addition:
As soon as you send the e-mail, make sure to IMMEDIATELY mark the record in
the database. Otherwise, anyone interrupting your application will cause
the entire list of offenders to be spammed when it starts back up (and those
of us who are tardy with our books won't like that very much :-).

You will also want to put in a check in the unlikely event that your
application is not done spamming the list when either a person or the timer
fires off again and attempts to start your application running in a second
process. This would be messy, since everyone still remaining in the list
would get two e-mails.

Good Luck,
--- Nick

"Deepak" <an*******@disc ussions.microso ft.com> wrote in message
news:6B******** *************** ***********@mic rosoft.com...
Bob,
Have you considered doing a scheduled task. You can do this from Control Panel and Scheduled Tasks and create a new task. The beauty of this approach
is that your application is not burdened with making the decision of when to
run. You can delegate that task to the "Scheduled Tasks" in windows.
With Regards,
Deepak
[I code, therefore I am]
----- Bob Cummings wrote: -----

Greetings

I am working on a Senior Project for school. It is a simple ASP.NET on line card catalog for an in-house library. One of the requests the
client has is to send an email reminder to users who have checked out
materials for over two weeks. I can figure out how to do everything but time the query for the database to get the list of users.

My initial idea is to have a small class that would have a timer running in the background and check itself every 24 hours and then fire the
message or whatever to start the process. Is that the best way? Or am I missing something simpler and better. I am a great believer is KISS (Keep It Simple Stupid)

Thanks

Bob

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2103
by: Karl A. Krueger | last post by:
I'm in the middle of refactoring a small mod_python Web application, which uses the Publisher handler. This application is currently a single main Python file (which loads several other files as modules) with several function entry points for the different pages in the application. (The application is a tool to allow staff members here to request firewall port openings for their servers. Thus there is a page (and function) for "view...
5
10792
by: mitchchristensen | last post by:
I have a transaction log that tracks issues from a call center. Each time an issue is assigned to someone else, closed, etc. I get a time stamp. I have these time stamps for the beginning of an issue to the end of an issue and I'd like to determine how many business hours these issues were open. Issue BeginDt Enddt Total hours 1 3/29/05 5:00 PM 4/1/05 2:00 PM 69 ...
1
2302
by: ammarton | last post by:
Hello all...I'm a bit new to working with Macros in Access so forgive me if the terminology I use is not accurate. To preface this, basically I am using a form on a replicated database so the end-user can filter on a specific report they want to see. This database was designed by my predecessor (of which he left no documentation) and I need to add some additional functions to this end-user filter report. Within one Macro, he has over...
7
1202
by: A.M-SG | last post by:
Hi, How can I list the available actions (and the command line for each action) for a specific file extension? I am using C# and .NET 1.1 I need that for printing .PDF files (*.PDF files print action), but I would
2
4175
by: Sin | last post by:
Hello everyone, I'm totally stumped at how little info I can find in MSDN or on the web concerning this. It's almost as if only microsoft personel hold the key to these secrets or something!!! I'm currently writting a program in which there is a file/folder list which mimics part of Explorer's list. I've got it pretty much cornered, but I still have a couple of problems :
2
1936
by: | last post by:
I am new to Visual Basic.Net using the Standard Edition, which does not come with a Deployment wizard, so I use the template on the File Systems Tab. Everything works fine, and I have enabled the following (Where "MyProgram.exe" is my new VB,net creation) When the user runs Setup.exe, he is presented with the choice of installing to \Program Files\MyProgram or a location of his choosing. Setup copies all the files to that location,...
4
1910
by: Jm | last post by:
Hi all I know this might sound a little stupid but i thought id better ask anyway in case there are some things i havent already tried that everybody else knows. Basically i am wondering if there is any way to speed up the time it takes for my app to display its first form. There is very little code before the form loads, pretty much just a line or two to load the images on it but it still can take quite a while on some machines to start...
7
13407
by: =?Utf-8?B?Sm9obi5ORVQ=?= | last post by:
Hi I have written a windows service in C# / .NET I have installed it and it's working fine on a couple boxes but on my XP box I get this error when I try to start it: Error 1053: The service did not respond to the start or control request in a timely fashion. I understand that the scm issue the start and is supposed to put up this error after some timeout period but it's coming up after only about half a second and it doesnt even...
1
2926
by: pushrodengine via AccessMonster.com | last post by:
Is there a way to log user actions? What I would like is to be able to log user activities within the database. The table “tblUserEvents” would contain two fields. Field one “EventTime” would be a date/time stamp of when the action was performed. Field two “EventDescription” would be a description of the action performed. Example 1: the user presses the Add button. The date/time is inserted into “EventTime” and the...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10174
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.