Solved, c# how to schedule a web page to run every hour

Posted on 2009-02-18
Last Modified: 2013-12-17

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
Question by:R8VI
    LVL 13

    Expert Comment


    Author Comment


    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


    LVL 5

    Accepted Solution


    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
    LVL 13

    Expert Comment

    >> 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.
    LVL 28

    Expert Comment

    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.
    LVL 13

    Expert Comment

    The processes explained in this article will be executed in the background i.e. aspx page will not popup
    LVL 13

    Expert Comment

    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

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now