472,331 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

VB.NET - Web App - Force Page Refresh

Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred
Nov 21 '05 #1
10 23200
Fred Nelson wrote:
Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred

(untested)

AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #2
Hi Mitchell:

Thanks for your help - I think we are very close.

I have searched MSDN for the ExecWb and found some info but I'm still lost.

Where in my code behind page would I execute the command you gave me:

I'm guessing it would be something like:
dim AxWebBrowser2 as (something)

AxWebBrowser2.ExecWB(command)
Thanks again for your help!

Fred
"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:OA**************@tk2msftngp13.phx.gbl...
Fred Nelson wrote:
Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred

(untested)

AxWebBrowser2.ExecWB(SHDocVw.OLECMDID.OLECMDID_REF RESH,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

Nov 21 '05 #3
Add this to the page headers to refresh every 5 minutes.

<meta http-equiv="refresh" content="300">

On Thu, 17 Mar 2005 10:35:45 -0500, "Fred Nelson"
<fr**@smartybird.com> wrote:
Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred


Nov 21 '05 #4
Fred,

When it is for the axwebbrowser than this one seems for me the most easy
one.

AxWebBrowser1.Refresh2(3)

I hope this helps,

Cor
Nov 21 '05 #5
Hi Cor:

I'm still lost - I have searched MSDN and don't find an example of calling
this in a VB.NET web application.

I'm assuming the code behind would be something like:

dim AxWebBrowser1 as (something)

AxWebBrowser1.refresh(parms)

Any help would be appreciated!

Thanks again,

Fred

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Fred,

When it is for the axwebbrowser than this one seems for me the most easy
one.

AxWebBrowser1.Refresh2(3)

I hope this helps,

Cor

Nov 21 '05 #6
Jay:

Thanks for your help - I think we are getting close.

In the application I'm making a change to an image file and immediately
after that I need to call a page refresh since the image file has been
changed but is not loaded into memory unless I click the refresh button.
The browser continues to display the image before the modification.

My only choices are to generate a page refresh - or if I can't do that then
I will need to make a program change to create a new filename.

So if there was some way to do the following:

Mywebbrowser.refresh (has the same effect as clicking refresh)

Then life would be great!

Your help is appreciated!

Fred
"Jay Pondy" <jp****@mindspring.com> wrote in message
news:tj********************************@4ax.com...
Add this to the page headers to refresh every 5 minutes.

<meta http-equiv="refresh" content="300">

On Thu, 17 Mar 2005 10:35:45 -0500, "Fred Nelson"
<fr**@smartybird.com> wrote:
Hi:

I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.

Does anyone know how to force the browser to refresh the current page?

Thanks very much for your help!

Fred

Nov 21 '05 #7
Fred Nelson wrote:
Jay:

Thanks for your help - I think we are getting close.

In the application I'm making a change to an image file and immediately
after that I need to call a page refresh since the image file has been
changed but is not loaded into memory unless I click the refresh button.
The browser continues to display the image before the modification.

My only choices are to generate a page refresh - or if I can't do that then
I will need to make a program change to create a new filename.

So if there was some way to do the following:

Mywebbrowser.refresh (has the same effect as clicking refresh)

Then life would be great!

Your help is appreciated!


I apologize Fred, I didn't know you were doing a web application!

I don't know if you can force a refresh on-the-fly in a web application.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #8
Fred,

Now I see it, please do not leave threads, this is the same qeustion as in
the other thread, for this problem I have given an solution in the original
thread where you have placed this question.

When you want to see it working look than to a previous message in this
thread where is probably as sample the same solution as yours (don't see
this as a production sample).

http://groups-beta.google.com/group/...428207bfee3402

I hope this helps?

Cor
Nov 21 '05 #9
Cor:

Re: Double Post

This is actually a different question from the other thread so it's not a
"double post". In the other post the focus was on database issues and my
real issue - how to refresh the web page was lost in the sauce.

This post dealt strictly with the need to refresh a web page - and I got
input from people who were not able to help with the first question.

Having tried everything I'm going to give up on the page refresh and modify
my program to create a file with a different name to work around the fact
that nothing else has worked.

Thanks for your help.
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uX**************@TK2MSFTNGP14.phx.gbl...
Fred,

Now I see it, please do not leave threads, this is the same qeustion as in
the other thread, for this problem I have given an solution in the original thread where you have placed this question.

When you want to see it working look than to a previous message in this
thread where is probably as sample the same solution as yours (don't see
this as a production sample).

http://groups-beta.google.com/group/...428207bfee3402
I hope this helps?

Cor

Nov 21 '05 #10
Fred,

funny,

You asked this question to me in that other thread, I gave you the answer, I
took the time to answer you, you did not even look to it.

You asked this than in this message thread, I answered this again with a
complete sample where this problem is done. You did again not look to it.

And than you tells that nobody gave you the right answer.

Cor
Nov 21 '05 #11

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

Similar topics

1
by: Charles Soto | last post by:
I've got a main loop script that calls two other scripts that do no user interaction. All they do is send a couple of mysql update statements. ...
2
by: thenetflyer | last post by:
<!-- The following sample should authorize the user to log on the site. This works once but after refreshing the browser, it does not prompt again...
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client,...
4
by: Paul Drummond | last post by:
Is there a way to force a page refresh, so users will not receive a cached version of a page, even if they have their browser set to never check for...
1
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
Is there a way to force a "traditional" full page postback in AJAX? I have a page with multiple UpdatePanels and I usually call...
0
by: philaphan80 | last post by:
Is there a way to force the Visual Studio IDE (Page Control at design- time) to refresh / repaint itself upon drag & drop of *any* item from the...
0
by: Summercool | last post by:
right now i have a script that will add to the DOM tree of a form... adding the hidden input values as children... it works well except when i...
2
by: Hrvoje Vrbanc | last post by:
Hello! I have an ASP.NET page that displays some data from an SQL Server 2005 database, using a Select query. The database is updated by another...
2
by: =?Utf-8?B?U2lsa0NpdHlGbG9yaWRh?= | last post by:
I have a web page "PgA" with a GridView. I open another page "PgB" in a new window. On PgB, they do some things that affect the underlying data...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

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.