Urgent !!! Refresh web pages regularly via time function (HELP)

Discussion in 'C#' started by Edwin_Pro_Net, Nov 19, 2009.

  1. #1
    I need to refresh the asp.net's web pages, keep refresh the program's code sql query at everyday in twice

    (morning 10:00am and evening 5:00pm)......

    and solution and sample code to show me ?

    thank you !
     
    Edwin_Pro_Net, Nov 19, 2009 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    How long does the refresh process take? Everytime a user visits your page you could just check what time it is and have a database field that marks the time of the last refresh, if the time is greater then 10am and db(lastrefreshed) is lower then 10am then you can run the refresh process and update the database field. And the same for 5pm. Meaning that the first user to open your page after 10am and after 5pm may have to wait a little bit longer while the database refreshes.

    Linux has cronjobs which execute something at certain intervals, and windows might too, but I am unsure of how to do this.
     
    camjohnson95, Nov 23, 2009 IP