R8VI
asked on
asp.net, c# how to schedule a web page to run every hour
Hi,
I have a webpage that in the back end c# code quries an xml file and puts the data in the database.
I want to automate this so that it kkicks off every hour, how is this possible.
Can someone give me some coding examples please and direct me how i would go about doing this
I have a webpage that in the back end c# code quries an xml file and puts the data in the database.
I want to automate this so that it kkicks off every hour, how is this possible.
Can someone give me some coding examples please and direct me how i would go about doing this
ASKER
hi,
Thanks for the responce if i am not mistaken this code would work if that page got hit.
But in my code the page will never get hit its just there if that makes sense sorry
thanks,
R8vi
Thanks for the responce if i am not mistaken this code would work if that page got hit.
But in my code the page will never get hit its just there if that makes sense sorry
thanks,
R8vi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> I have a webpage that in the back end c# code quries an xml file and puts the data in the database
To execute this process we need to hit this page.
To execute this process we need to hit this page.
A webpage is not meant for that purpose.
The way to do it is to write a Windows Service and run it on a timer.
The way to do it is to write a Windows Service and run it on a timer.
The processes explained in this article will be executed in the background i.e. aspx page will not popup
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx
in my implementation i needed to execute Stored Procedure every three hours
>Store proc call is in aspx page load event
>process in global.asax page hit this aspx page in the background so no popups
hope that helps
>Store proc call is in aspx page load event
>process in global.asax page hit this aspx page in the background so no popups
hope that helps
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx