Constant timer in asp.net
-
Hi. I would like to start a timer in my asp.net application, which starts when the page loads, or a button is pushed or whatever. The timer should then be triggered once every day. Even if no clients/browsers are connected to the server. The idea is that the server should spit out an e-mail every day. Is this possible? And how is it possible? Thanks alot! :)
-
Hi. I would like to start a timer in my asp.net application, which starts when the page loads, or a button is pushed or whatever. The timer should then be triggered once every day. Even if no clients/browsers are connected to the server. The idea is that the server should spit out an e-mail every day. Is this possible? And how is it possible? Thanks alot! :)
When the page loads or any event occured of your application then take current date and time store it in your database. Then after 24 hrs you can send email. Hope this may help u........... :)
-
Hi. I would like to start a timer in my asp.net application, which starts when the page loads, or a button is pushed or whatever. The timer should then be triggered once every day. Even if no clients/browsers are connected to the server. The idea is that the server should spit out an e-mail every day. Is this possible? And how is it possible? Thanks alot! :)
Could not understand what actually you require. But as I understood, whenever your application starts or accessed or whatever event as per your requirement, make some entry in database then you can create a console application which checkes the DB and read the entries and accordingly can send the mail. And then you need to schedule this exe file using windows schedular on daily. So you exe will run daily and will be checking the db and accordingly will send the mail..
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
Hi. I would like to start a timer in my asp.net application, which starts when the page loads, or a button is pushed or whatever. The timer should then be triggered once every day. Even if no clients/browsers are connected to the server. The idea is that the server should spit out an e-mail every day. Is this possible? And how is it possible? Thanks alot! :)
-
Could not understand what actually you require. But as I understood, whenever your application starts or accessed or whatever event as per your requirement, make some entry in database then you can create a console application which checkes the DB and read the entries and accordingly can send the mail. And then you need to schedule this exe file using windows schedular on daily. So you exe will run daily and will be checking the db and accordingly will send the mail..
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
Thanks alot for your answers! I forgot to say, that my application will run on my webhost, and therefore not on my own asp.net server. So I guess the windows scheduler solution cant solve my problem :(
lvq684 wrote:
So I guess the windows scheduler solution cant solve my problem
Why? You just make some entry in database according to your requirement to send the mail. Create new console application which reads the databse and send the mail accordingly. Now schedule it with windows schedular on daily basis. you exe will run and checks the DB and send the mail accordingly.. I have implemented this kind of functionality.. Are you looking for something else?
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
lvq684 wrote:
So I guess the windows scheduler solution cant solve my problem
Why? You just make some entry in database according to your requirement to send the mail. Create new console application which reads the databse and send the mail accordingly. Now schedule it with windows schedular on daily basis. you exe will run and checks the DB and send the mail accordingly.. I have implemented this kind of functionality.. Are you looking for something else?
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
Where would that console application be running from? I most likely cannot execute it on my webhost. If I execute it locally, it would require that my "home computer" would be turned on, and thats not the solution I am looking for. So every functionality should be going on in an application on my webhost. Thanks :)
-
Where would that console application be running from? I most likely cannot execute it on my webhost. If I execute it locally, it would require that my "home computer" would be turned on, and thats not the solution I am looking for. So every functionality should be going on in an application on my webhost. Thanks :)
Write a Windows Service not a console application... Install it on your server Hope this may help u..... :)
-
Write a Windows Service not a console application... Install it on your server Hope this may help u..... :)
-
You need to run it on your webserver/database server or on some machine that is tha is always running and have access to database to read the information.
Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0
-
what is ur webhost is it a server. Then i m sure u can create a Windows service.........:suss:
-
When the page loads or any event occured of your application then take current date and time store it in your database. Then after 24 hrs you can send email. Hope this may help u........... :)
if your site is hosted on server then you can create window service and If your database and site hosted on same server and if you have access of SA of site then you can run sql job as well for this. Hope this will help you. :)
-
what is ur webhost is it a server. Then i m sure u can create a Windows service.........:suss:
-
What he means is, its a paid for web host, not his own server, and I wouldn't expect them to allow windows services to be installed by anyone, hence the problem.
Bob Ashfield Consultants Ltd
Ok got it...So he use a shared web server shared by multiple clients.... Ok sorry dear u have to use timer control then....... ;)