473,473 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

set refresh rate for an active browser window

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
Nov 27 '06 #1
10 2707

Bill Nguyen wrote:
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.

Nov 27 '06 #2
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

<lo*********@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
>
Bill Nguyen wrote:
>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.

Nov 27 '06 #3

Bill Nguyen wrote:
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?

Nov 28 '06 #4
Why not have the client's refresh themselves by adding the following HTML to
the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>
Bill Nguyen wrote:
>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?

Nov 28 '06 #5
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

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following HTML
to the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>>
Bill Nguyen wrote:
>>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?


Nov 28 '06 #6
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" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
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

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
>Why not have the client's refresh themselves by adding the following HTML
to the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googleg roups.com...
>>>
Bill Nguyen wrote:
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?



Nov 29 '06 #7
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

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
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" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
>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

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
>>Why not have the client's refresh themselves by adding the following
HTML to the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.google groups.com...

Bill Nguyen wrote:
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?



Nov 29 '06 #8
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
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

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>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" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
>>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

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following
HTML to the page:

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

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googl egroups.com...
>
Bill Nguyen wrote:
>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?
>




Dec 2 '06 #9
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
>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

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>>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" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
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

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following
HTML to the page:
>
<META Http-Equiv="Refresh" CONTENT="300"/>
>
>
>
<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.goog legroups.com...
>>
>Bill Nguyen wrote:
>>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?
>>
>
>




Dec 4 '06 #10
HTH :)
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:OT**************@TK2MSFTNGP06.phx.gbl...
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
>Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
>>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

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
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" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
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
>
"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl.. .
>Why not have the client's refresh themselves by adding the following
>HTML to the page:
>>
><META Http-Equiv="Refresh" CONTENT="300"/>
>>
>>
>>
><lo*********@gmail.comwrote in message
>news:11**********************@h54g2000cwb.goo glegroups.com...
>>>
>>Bill Nguyen wrote:
>>>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?
>>>
>>
>>
>
>




Dec 5 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andrus Moor | last post by:
I want to add a refresh button to my web page which works like browser refresh button: it must re-load current page from server. How to implement this in javascript ?
19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
17
by: Jim Little | last post by:
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am not using session variables to track state. My...
2
by: Bill | last post by:
Hi all, I have little experience of B/S application. I face a project that marketing want a pure B/S structure.But the refresh rate is 60 times/sec at the most,For example,a realtime curve. Do you...
4
by: Sarita Sai Bhushan | last post by:
Hi, While I was developing a active desktop web page in ASP.Net using server controls I faced a problem with the autopostback property of server control. The sever control I used in my aspx page...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
15
by: ABC | last post by:
Hi, I have a problem with Double submission in html forms. I am using PHP as the server side scripting language, i have found a means to capture the second form submission while the first form...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.