Avatar of spaulissian
spaulissian
Flag for United States of America asked on

vb.net/ASP.net Update Web Page when not the active Tab

I have a vb.net application that displays sensor information on a webform.  The web form updates the information every 15 seconds and works great while it is the active tab on the browser.
But once a different Tab on the browser is selected, on the next update the webform tab returns

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.


The url in the window then shows the original URL with  a /15,%2015 appended to the end of it.  Such as http://myserver/mywebsite/15,%2015.  Hitting the refresh button on the browser doesn't reload the original URL.

How can I continue to update the browser tab even when it is no longer the active tab?  In this particular case the users will be changing between tabs regularly so I need to at best maintain updates on the webform tab or at least, not have it change to the error message and pause until the tab is active again.
ASP.NETVisual Basic.NETWeb Applications

Avatar of undefined
Last Comment
spaulissian

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
spaulissian

ASKER
Turns out removing the following command fixed the issue
Response.AppendHeader("Refresh","15")

Open in new window

I had found that online as a solution to have the form refresh every 15 seconds, so your Fix #1 turned out to be the solution.
Your help has saved me hundreds of hours of internet surfing.
fblack61