• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 902
  • Last Modified:

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
0
R8VI
Asked:
R8VI
1 Solution
 
R8VIAuthor Commented:
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
0
 
kumar_jacCommented:

Hi'
Simple solution is
open the url from the browser create short cut for that.
In IE right clik in blank area of the browser window and select "Create Shortcut" from the context menu
or drag drop the address bar fav icon to the folder

this above operation create a web short cut
copy and paste the short cut in the folder where you want.
in the schedule task call browse and choose the file.

thats all.
this will start and run based on your schedule task
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
sm394Commented:
>> 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.
0
 
sybeCommented:
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.
0
 
sm394Commented:
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
0
 
sm394Commented:
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
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now