Solved

asp.net automate to fire every hour

Posted on 2011-09-09
5
274 Views
Last Modified: 2012-05-12
Hi,

I have built an asp.net website that sends emails if you click a button, what I want to do is automate this process so that every hour it gets called and sends emails, how can I do this

Please help

Thanks,

R8VI
0
Comment
Question by:R8VI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Expert Comment

by:dexterrajesh
ID: 36509574
there are different options to send email automatically

1) you can use windows schedular in u r computer to send them
the following urls will help u :
http://blogs.msdn.com/dditweb/archiv...0_-Part-I.aspx
http://www.gridviewguy.com/ArticleDe...x?articleID=32

2)u can achieve the same functionality using sql server,if u are using that in u r project.
first u need to configure the sql to send emails the procedure and requirements for a computer to send email are given below,

I think you need to find an alternate for the button click event...

hope it helps

0
 

Author Comment

by:R8VI
ID: 36509586
Hi dexterrajesh,

Thanks for the advise but none of the links above work, I suppose I'll have to turn the code into a desktop app and get the windows schedular to call it every hour, and code the onclick button event for onload for the desktop app.

But could you pelase provide the links so that I dont get bad request

Thanks,

Ravi
0
 
LVL 9

Accepted Solution

by:
dexterrajesh earned 500 total points
ID: 36509808
can you please check it here: http://msdn.microsoft.com/en-us/magazine/cc163821.aspx
http://stackoverflow.com/questions/542804/asp-netbest-way-to-run-scheduled-tasks

you can create a console app and scheduled it using sql as they windows UI wont be used... I am not sure if this works for you...
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36510299
Best way to write windows service. Here is simple codeproject link to start with this

http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx
0
 
LVL 16

Expert Comment

by:disrupt
ID: 36514947
you can use something like so:

http://professionalaspnet.com/archive/2007/09/02/Creating-a-Background-Thread-When-the-Web-Site-First-Starts.aspx

and edit the time amount and trigger to suit your needs
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question