1. rewrite to exist in frames where one frame's code checks the other (assuming 
both pages are from same domain and only one refreshes).

2. if the page is being hosted in a webbrowser control, then its very easy to 
handle this. if not.. its an idea since it can be whipped together in a few 
minutes.

3. you can also create a simple ie add-on to watch for this and force nav to a 
different url which contains embedded script. 

4. more of an fyi as I dont recommend it..theres another bad but very quick 
alternative... but how hacky do you want to get? I dont usually recommend 
something like this but if its a single system you have complete control over: 
modify the error page html to do the refresh/recheck (if changing this on the 
client doesn't have an affect on other things that will use ie). use resource 
hacker and change the shdoclc.dll file. recompile with resource hacker. 
there may be an easier registry key to do this but Im not aware of one. warning 
- theres a potential this could get changed with a system patch. again.. Im not 
advocating this.. just an fyi.



-----Original Message-----

From: "Pardee, Roy" 

Sent: Wed, 05 July 2006 19:03:34

To: [email protected]

Subject: Re: [ADVANCED-DOTNET] Refresh a web page automatically when network 
connection goes down



Would ATLAS (AJAX) be of help here?  Have a jscript function on the page

attempt to update just the relevant bits of a page (maybe along with an

"information as of " label) and fail silently if the server

isn't available right that second.



I've not messed w/ATLAS myself, but it looks hella-slick...



-----Original Message-----

From: Discussion of advanced .NET topics.

[mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie

Sent: Wednesday, July 05, 2006 11:28 AM

To: [email protected]

Subject: Re: [ADVANCED-DOTNET] Refresh a web page automatically when

network connection goes down



If the web page is displayed in a normal browser and the refresh is done

through META tags, then the previous answers are correct.  There's not

much you can do.  Adding javascript to see if the site is available

before showing it will reduce the refresh time.



If you're hosting the page in a .NET application then you can subscribe

to the NetworkAvailabilityChanged event or use the GetIsNetworkAvailable

method.  But, both relate to whether the network card is connected, not

whether Internet or Intranet access is available.



-- Peter

Microsoft MVP Visual Development - C#

http://www.peterRitchie.com/Blog



On Wed, 5 Jul 2006 13:08:19 -0400, Eddie Lascu 

wrote:



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



===================================

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

-------------------------------------------------
 Sent using http://www.DWmail.net, a free service
 Check your email [any email, anytime, anywhere]
-------------------------------------------------
Disclaimer: DWmail.net is not responsible for the content sent via it's 
services.  Additional header information is included regarding the source of an 
email.  If you believe an email is junk you should look for the 'Originating 
IP' message header

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to