473,506 Members | 16,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to run a Background Job ?

Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .

Oct 30 '06 #1
7 2329
You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .
Oct 30 '06 #2
Write your application and then use the Task Schedular in Windows to execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .



Oct 30 '06 #3
Just to clarify that in this case you would write either windows or console
application. You can also use your database job scheduling facilities.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Michael D. Ober" <obermd.@.alum.mit.edu.nospamwrote in message
news:on****************@newsread2.news.pas.earthli nk.net...
Write your application and then use the Task Schedular in Windows to
execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
>You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googleg roups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .




Oct 30 '06 #4
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user
interaction
"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .

Oct 30 '06 #5
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user interaction
Depends. If that process should run just once a day, a console
application that is started by "Scheduled Tasks" doesn't take up
resources the rest of the day.
If it should run (almost) continously, then you are right.

Hans Kesting
Oct 31 '06 #6
We do the same.
Task scheduler calling a simple app which uses the URLdownloadToFile() win32
api on the web app.
Which invokes a specific batch.
I append the result, which is plain text, to my logfile.
(It calls a generic handler/ashx)

Maybe you'll have luck with window's Wait.exe or similar.
There was an issue the task scheduler could not execute my web app, i tried
explorer but failed, therefore my simple win32 app.

"Michael D. Ober" <obermd.@.alum.mit.edu.nospamschreef in bericht
news:on****************@newsread2.news.pas.earthli nk.net...
Write your application and then use the Task Schedular in Windows to
execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
>You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googleg roups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .




Nov 1 '06 #7
Vivekian,
You may wanna check this link:
http://www.codeproject.com/aspnet/ASPNETService.asp

Parind.

"Edwin Knoppert" wrote:
We do the same.
Task scheduler calling a simple app which uses the URLdownloadToFile() win32
api on the web app.
Which invokes a specific batch.
I append the result, which is plain text, to my logfile.
(It calls a generic handler/ashx)

Maybe you'll have luck with window's Wait.exe or similar.
There was an issue the task scheduler could not execute my web app, i tried
explorer but failed, therefore my simple win32 app.
Nov 2 '06 #8

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

Similar topics

2
10457
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all...
3
4737
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
5
11073
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I...
3
3213
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in...
1
2428
by: nicky77 | last post by:
Hi, I've created a nav bar using a background image for rollover effects. Everything works as I had hoped, however, for some reason it seems that an area of whitespace (the same size of the...
2
4793
XedinUnknown
by: XedinUnknown | last post by:
Hi! I am new to this forum, but not new to web design and programming. Nevertheless, I have never tried to use PNG so extensively in my pages. here's the problem. First, I have found that the...
16
4905
by: stevedude | last post by:
CSS newbie again. I have a problem trying to get coffee mug images within anchor tags to center with my link text for a vertical list menu. If I use the horizontal/vertical properties of...
19
3962
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However,...
10
5735
by: VividWeb | last post by:
Hi. I am relatively new to CSS and HTML but have a basic understanding of most things. One of my backgrounds is not positioning correctly in IE 7 or AOL. The background behind the content...
2
14058
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7021
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...
0
7478
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...
1
5035
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...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...

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.