473,708 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 23414
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.E xecWB(SHDocVw.O LECMDID.OLECMDI D_REFRESH,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_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.E xecWB(command)
Thanks again for your help!

Fred
"Mitchell Vincent" <mv******@newsg roup.nospam> wrote in message
news:OA******** ******@tk2msftn gp13.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.E xecWB(SHDocVw.O LECMDID.OLECMDI D_REFRESH,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_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**@smartybir d.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.R efresh2(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.r efresh(parms)

Any help would be appreciated!

Thanks again,

Fred

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

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

AxWebBrowser1.R efresh2(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.re fresh (has the same effect as clicking refresh)

Then life would be great!

Your help is appreciated!

Fred
"Jay Pondy" <jp****@mindspr ing.com> wrote in message
news:tj******** *************** *********@4ax.c om...
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**@smartybir d.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.re fresh (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******** ******@TK2MSFTN GP14.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

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

Similar topics

1
2297
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. This works fine, EXCEPT the mysql statement isn't finished by the time the main loop is called. This is a problem because the main loop actually queries that same table to show the value of the rows you just changed. If I refresh the page...
2
5472
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 closed and the same page is opened. I turned off all caching but still it does cache (as a refresh doen not promt again). How can I force the page to prompt for a password at every refresh ?
1
10856
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
2546
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
10278
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 condition that requires an update to several controls that are not in an UpdatePanel and it makes sense to post the entire page for a refresh. I don't really want to put the entire page in an update panel to call the Update method to refresh the...
0
2276
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 the page control? I'm aware of using "ComponentModel.RefreshProperties(RefreshProperties.All)" within custom controls, but that only refreshes the page when something specific to that custom control is changed. I'm looking for a way to hook...
0
3948
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... (IE 7 and Safari 3 both removed them). So Firefox will actually submit more objects that there really are. so Firefox (2.0.0.8) is the only one causing trouble... is there a way to "force" refresh of the page or reload it? if i refresh...
2
2200
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 page. The ASP.NET page only displays data and it has nothing to do with inserting or updating data. What is the best way to force the refresh of the ASP.NET page every time a new record is inserted in the table?
2
3824
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 with PgB, they click a button that executes this VB: Protected Sub Close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Close.Click 'Do some stuff Response.Write("<script language='javascript'{...
0
8788
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8697
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9290
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9061
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7925
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4454
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4713
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.