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