Hi Eddie. I agree with Greg's solution, but I would add one thing.
I would put the whole page in an Iframe and put the javascript into the "outer" page. It would then update the Iframe. The advantage of this is that if there is a network problem that you don't catch for some reason, the outer page is still available to try again. Did that make any sense? HTH. ______________________________ - David Lanouette - [EMAIL PROTECTED] "Excellence, then, is not an act, but a habit" - Aristotle > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Gregory Miley > Sent: Wednesday, July 05, 2006 1:20 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Refresh a web page > automatically when network connection goes down > > You could use javascript to verify that the page is > accessible before the refresh, and only refresh if it is, > otherwise wait till the next refresh timeout to come around > and repeat the procedure of checking for the page, then > refreshing if available. > > Not really a .Net solution, but it should do the trick. > > Greg > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Lascu > Sent: Wednesday, July 05, 2006 13:08 > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Refresh a web page automatically when network > connection goes down > > Hello Experts, > > This may not be such an advances .NET topics, but I don't > have any other place where to ask my silly question. I > apologies in advance. > One of the components in our system displays dynamic > information through a web page on an unmanned display (much > like the arrival/departure times and flight status displayed > in airports). > > Web development is not my area of expertise, but it's hard to > swallow the explanation I was presented by the developer that > did the page. > Bottom line, the page refreshes itself every 2 seconds, to > update almost real time the information it must display. > However, if the network goes down for a very short period of > time, the page cannot connect to the server and Error 401 is > presented (actually would have been, except it was replaced > with a blank page). The only way to solve this (suggested by the said > developer) is to remotely connect to the desktop and refresh > the link manually. > > Is there another way to do this in an automatic fashion? I > think ideally would be to leave the display untouched as long > as the network is down and refresh the content of the page as > soon as the network comes back on-line. > The page is displayed with Internet Explorer, so there is not > much control I have over the logic that controls the error handling. > > Any suggestion would be appreciated. > Regards, > Eddie > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com