Link to home
Start Free TrialLog in
Avatar of R8VI
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
Avatar of Faizan Sarwar
Faizan Sarwar
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of R8VI
R8VI

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
ASKER CERTIFIED SOLUTION
Avatar of kumar_jac
kumar_jac
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> 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.
Avatar of sybe
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 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
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