473,378 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Click webbrowser button

Hello all,

I'm trying to make my program autologin in a website but it isn't
really working.

The website has 2 textfields one for user name and other for pw.
When you filled in those you click the button (like on all websites).

I found how to fill in the 2 textfields but with the button i have a
problem.

This is the sourcecode from the website
<b>Username:</b></font><br>
<input type="text" name="login_username" size="20"><br>
<font color="#FFFFFF" face="Verdana" size="2">
<b>Password:</b></font><br>
<input type="password" name="login_password" maxlength="16"
size="20"><br>
<input type="submit" value="Login"></p>

the 2textfields are done like this
DirectCast(GetCurrentWebForm.item("login_username" ),
mshtml.HTMLInputElement).value = Text
DirectCast(GetCurrentWebForm.item("login_password" ),
mshtml.HTMLTextAreaElement).value = Text

The problem with the button is that it doesn't have a "name".

Anyone knows how i can click this button then?

ty,
Steven

Sep 16 '07 #1
3 2783
Do you need to? can't you just Submit the form?

Cheers,
Johnny
<th*************@hotmail.comskrev i meddelandet
news:11**********************@19g2000hsx.googlegro ups.com...
Hello all,

I'm trying to make my program autologin in a website but it isn't
really working.

The website has 2 textfields one for user name and other for pw.
When you filled in those you click the button (like on all websites).

I found how to fill in the 2 textfields but with the button i have a
problem.

This is the sourcecode from the website
<b>Username:</b></font><br>
<input type="text" name="login_username" size="20"><br>
<font color="#FFFFFF" face="Verdana" size="2">
<b>Password:</b></font><br>
<input type="password" name="login_password" maxlength="16"
size="20"><br>
<input type="submit" value="Login"></p>

the 2textfields are done like this
DirectCast(GetCurrentWebForm.item("login_username" ),
mshtml.HTMLInputElement).value = Text
DirectCast(GetCurrentWebForm.item("login_password" ),
mshtml.HTMLTextAreaElement).value = Text

The problem with the button is that it doesn't have a "name".

Anyone knows how i can click this button then?

ty,
Steven

Sep 16 '07 #2
I can but then i cant really protect my program from being used by
people that i dont want.

If i can find out how to click the button then i dont have to show the
webpage and i can refer to an other site (db) saying which user has
acces and which hasn't.
>

Sep 16 '07 #3
Ty,

Ill take a look at that

Sep 17 '07 #4

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

Similar topics

7
by: Robert May | last post by:
I have an application that uses the Ax web browser object. When I call the IHTMLElement.click() method on an input button (<input type="submit"> or <input type="button">), the click fires...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
3
by: Pete | last post by:
Using C# and a web browser control, is there a way to programatically click a web page button?
2
by: cweeks78681 | last post by:
I am porting some VB6 code that automates navigation through a web page by getting all the <a> tags into a collection and then calling the Click method on the appropriate one. How do I click a...
3
by: cweeks | last post by:
I use the InvokeMember("Click") method of HtmlElement to click a button in a web page using the Webbrowser control that is new in VS 2005 C# Express. Now I need to be able to select a member of a...
1
by: nime | last post by:
I got an image button in a form. I want to simulate a click through programming. There is no Click method for HTMLElement. I tried el.RaiseEvent("Click") instead and an error occured. How can I...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
2
by: JDeats | last post by:
Using VS.NET 2005, if you place a WinForms WebBrowser control on a form, then place a command button on that form and in the "click" even handler for the command you do: webBrowser1.DocumentText...
1
by: the_only_steven | last post by:
hey all, I use the visual basic 2005 version and I want to click a button on a website using a button on my main form. I use the Webbrowser to navigate to the correct site WebBrowser1.Url = New...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.