Passing text to a web page:

L

Laurie Comerford

Hi,

I have the following code to open a web page using a webbrowser control:

Public Class Form1

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load

WebBrowser1.Navigate(http://RequiredWebAddress)

End Sub

End Class



I would like to pass a user name and password to the web page, but being new
to .NET I can't seem to find the required code. I presume this is possible
and would like some guidance as to how to do it.


--


Regards

Laurie Comerford
 
L

Laurie Comerford

Hi Cor,

Thanks for the suggestion. I had tried the MS knowledgebase and a general
web search, but did not get any meaningful (to me) results.

I'm unable to get any of the options from the search results you gave me to
work inclusive of trying various seperators, spaces, commas, colons,
semi-colons etc.

In the sample code: http://www.asite.com/pass.aspx?uname=john&pass=doe& I
could not be sure if "pass.aspx?" is generic or if it is a specific function
on a specific web page. Also with "uname" and "pass". Are these generic or
page specific.

I also tried variations on:

http://username:[email protected]

None of them worked. In one of the posts the Username and Password were
enclosed as follows <Username> and <Password>. I tried both with and wthout
the braces with no effect.


--


Regards

Laurie Comerford
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top