Results 1 to 3 of 3

Thread: how to display a webpage every one hour?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    208

    Arrow how to display a webpage every one hour?

    I am developing an intranet web application. i am using asp.net,C# and MS sql.
    now i want to make everyone hour to bring a grid view page with lists of names whose contractperiod is expiring soon.
    so how do i make an asp.net page to be pop up every hour.
    thanks

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: how to display a webpage every one hour?

    You don't.I think you are starting the wrong way here.
    If you want an application to bring results and popup then you will have to maintain the web browser open and hoping that your client never closes it.That is almost never the case.
    I would be looking for a winform solution, since this is an intranet app, you can hopefully have everyone install it on their computer and run constantly.
    I would also vote against a windows service for this one since you will have a lot of trouble trying to pop up stuff to the desktop cuz services run on different threads- context.
    Eventually you can make this work (i've done this with the help of JMC) but it's very troublesome.
    An app that runs on startup seems to be a better solution for this.Get you data from sql and display.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Hyperactive Member jasonwucinski's Avatar
    Join Date
    Mar 2010
    Location
    Pittsburgh
    Posts
    452

    Re: how to display a webpage every one hour?

    You can use windows Task Scheduler to open the browser at a specified page URL. The scheduled task can probably be set up by your network admin for all users (although I haven't used it that much). As sapator mentioned, though, it's probably not the best way (and possibly annoying to the users). You can use the same Task Scheduler to run a windows app.
    if i was able to help, rate my post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width