By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,170 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,170 IT Pros & Developers. It's quick & easy.

AxWebBrowser refresh/reload not working!

P: n/a
Hey Everyone,

I really hope there is someone who can figure out this problem.
Honestly, I spent 3 days now trying to find the solution, but nothing

I'll try to explain the problem shortly, so I don't take too much of
your time.

On the form I have AxWebBrowser box, and I load the page in it,
normally you would do it like this:
Dim finalurl as string =
I set up a timer1 tick to go off every 10 minutes.
Example.php I am trying to load is a php script which comes up to have
different variables everytime you reload/refresh it.

In my case everytime I call the page, variables are the same. It never
refreshes it.

So I did my research and there was a suggestion to do this:

So I did another research and there was a suggestion to do this:

Dim finalurl as string =

Well, this didn't work either.
So after another day of browsing Google, I found that someone
suggested to do this:

Private Enum BrowserNavConstants As Integer
navOpenInNewWindow = &H1
navNoHistory = &H2
navNoReadFromCache = &H4
navNoWriteToCache = &H8
navAllowAutosearch = &H10
navBrowserBar = &H20
navHyperlink = &H40
End Enum

and then call AxWebBrowser like this, so it is using property called:

BrowserNavConstants.navNoReadFromCache, Nothing, Nothing,

Well, this doesn't work either and my application is not refreshing
the values, which I need to bring into the program.

Guys, I am really lost and I've got to the point of resignation. I
simply can't get it to work and no one can figure out how to do

Someone suggested to delete cookies and temporary cache files which
this php page is creating.
But that is not easy, location differs from pc to pc, and from
platform to platform and I really believe, that there should be some
other way of doing it.

Now, one valid point and that might be a help.
While application is running and refreshing values every 10 minutes,
NOTHING CHANGES, variables are still the same.
But if I open my Internet Explorer and go to the page (example.php),
it shows me updated values.
And my program as if someone used a magic stick, refreshes too.

So, what should I do? Is there any, and I mean any way, to refresh,
reload AxWebBrowser?
Any way to make it, so it doesn't read the page from cache?

Please, your help will be greatly appreciated.

Martin Ho.
Posted Via Premium Usenet Newsgroup Services
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies

P: n/a
Can anyone help, please?

Nov 21 '05 #2

P: n/a

Probably you want something as this.

Module main
Public Sub main()
Dim myReg As Net.HttpWebRequest = _
DirectCast(Net.WebRequest.Create(""), _
Dim myResp As Net.HttpWebResponse = _
DirectCast(myReg.GetResponse(), Net.HttpWebResponse)
Dim myStream As IO.Stream = myResp.GetResponseStream()
Dim myreader As New IO.StreamReader(myStream)
Dim mystring As String = myreader.ReadToEnd()
End Sub
End Module

Instead of the webbrowser

I hope this helps a little bit?

Nov 21 '05 #3

P: n/a
This I tried already...

it works fine for

But not for

which is the real path to login user...

I need to retrieve the html code of the page which comes after my user
is logged in...
So it really is the second page, which I can't hit without first
hitting this first one...

Any ideas on how to pass variables first and than retrieve the html
source code right after redirect from the first page to second?


Nov 21 '05 #4

P: n/a
Also check this thread, no one knows how to refresh axwebbrowser, so I
started topic for workaround using httpwebresponse:

Please let me know....


Nov 21 '05 #5

P: n/a

When it was an asp page, I maybe had the answer however it is PHP.

What in ASP would happen is that you get a page back.
Get the URL and ask that as second form.
Because when it is ASP or ASPX then the intern action would probably be
Response.redirect("url"), so why not do that by hand again.

What I don't know if there is an hidden token in that page, that is set in
the page.
When that is done, you have a lot more work.

(I would try it first in the browser).

However probably you get more information in a PHP newsgroup.

Nov 21 '05 #6

P: n/a
Hi Cor,

can someone explain why axwebbrowser is not refreshing properly?
I call refresh and it doesn't do anything it just reloads it from

Is there any other component like axwebbrowser which I could use?

This cannot be tru, that in .net I can't write the application which
would reload the page properly.

It just doesn't seem right.


Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.