I am having a WebBrowser control nightmare...
I am trying to navigate through a https website using the browser control. Now, I have the code to log in on the main page (page1). Once the submit button has been "clicked" in my code, page 2 opens. Normally, if I click on link "x" on page 2, a new explorer window opens (page3) with data I then want to download. However, if I try to click link "x" on page2 in the webbrowser control (manually or in code)
a new explorer window opens but this new page is a challenge to enter my username and password yet again.
Now, I'm not sure that the cookie files are an issue because say I log in to the through Internet Explorer the normal manual way and navigate to page 2 and then delete all the cookie files. If I then click on page 2's link "x", I get page 3 with the data I want to download....
Now, I have tried using the Navigate2 method of the webbrowser control to force a new page to open in a second webbrowser control I've embedded on my form.
The code looks like this:
Me.WebBrowser1.Navigate2 " , Webbrowsercontrol3
However, when I execute this method, I don't get page 3 in this second browser control. Instead the original web browser control gives me a message saying I need to exit the site and pushes me back to the login form.
Any ideas anyone?
I am trying to navigate through a https website using the browser control. Now, I have the code to log in on the main page (page1). Once the submit button has been "clicked" in my code, page 2 opens. Normally, if I click on link "x" on page 2, a new explorer window opens (page3) with data I then want to download. However, if I try to click link "x" on page2 in the webbrowser control (manually or in code)
a new explorer window opens but this new page is a challenge to enter my username and password yet again.
Now, I'm not sure that the cookie files are an issue because say I log in to the through Internet Explorer the normal manual way and navigate to page 2 and then delete all the cookie files. If I then click on page 2's link "x", I get page 3 with the data I want to download....
Now, I have tried using the Navigate2 method of the webbrowser control to force a new page to open in a second webbrowser control I've embedded on my form.
The code looks like this:
Me.WebBrowser1.Navigate2 " , Webbrowsercontrol3
However, when I execute this method, I don't get page 3 in this second browser control. Instead the original web browser control gives me a message saying I need to exit the site and pushes me back to the login form.
Any ideas anyone?