set refresh rate for an active browser window

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

I would like to be able to get an active browser window to refresh the URL
(reload) every 5 minutes. Is it possible in VB.NET?

Thanks

Bill
 
Bill said:
I would like to be able to get an active browser window to refresh the URL
(reload) every 5 minutes. Is it possible in VB.NET?

Thanks

Bill

Probably. Simplest way would be to attach a timer to the form and then
when the timer tick hits 5 minutes, refresh, reset the tick counter.
another way might be to have a seperate thread to refresh, adn then
make the thread sleep for 5 minutes, then when it wakes up, it
refreshes, and then goes back to sleep.
 
I ahve multiple browsers on a single form (created during runtime). I need
to be able to detect all these active browsers so that I can refresh them.
Any idea how to accomplish this?

Thanks again

Bill
 
Bill said:
I ahve multiple browsers on a single form (created during runtime). I need
to be able to detect all these active browsers so that I can refresh them.
Any idea how to accomplish this?

Thanks again

Bill
Would it be possible to have multiple timers/timed threads? and have
one for each browser?
 
Why not have the client's refresh themselves by adding the following HTML to
the page:

<META Http-Equiv="Refresh" CONTENT="300"/>
 
Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can I
add the <META...> line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill
 
Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the refresh
button every 5 minutes (the same page will re-load). If you wanted a
re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />
 
Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill
 
Yep, you got it.


Bill Nguyen said:
Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill
 
Back
Top