Automate webbrowser login



Been a while since playing in .NET. What I want to do is common, but I can't
find a straightforward anwer. I have a webbrowser1 that opens a url, I want
to be able to log into this automatically with username and password. There
is no string to grab after login that i can just enter so what i need to do
is assign values to the various inputs. Here is an example from the page
<td class="tbLabel" align="Right"><span id="lblPassword"
key="Password">Password</span>:</td><td><input name="txtPass" id="txtPass"

if i take the source code and add to the above Value="password" it will fill
it out. how do i set a value to that particular item and then submit it?
This is the submit line

<input type="submit" name="Login" value="Logon" id="Login" tabindex="3"

key="Logon" onmouseover="this.className='btn btnhov'"
onmouseout="this.className='btn'" />



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