473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 23375
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. Then they use header() to call the main loop again. ...
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 for login until all browser (IE 6) windows are...
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, without user press Contrl+F5 in IE ? - Marco
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 a newer version of page? Thank you!
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 UpdatePanel.Update() to do a partial postback, but I have one...
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 toolbox? Perhaps a method I need to override within...
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 click "BACK", Firefox doesn't remove those objects......
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 piece of software, independently of the ASP.NET...
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 for the GridView on PgA. When the user is done...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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,...

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.