Hi, wath is the control to use to surf the web and make a submit in a website? Thank you very much
Printable View
Hi, wath is the control to use to surf the web and make a submit in a website? Thank you very much
You post is a bit unclear. What do you mean - a submit button?
A bit ?
you are probably after the webbrowser control, which is a com component.. I dont think they have anything ported over as a .net assembly for IE yet...
as for the submit button.. im with the guys that posted above me that I don't know what you are talking about
i want to access in a home page wich have a login and password and press the submit button
I understand if you don't speak/write english very well, but it is very hard to understand what you are really after.
sorry:
i want to go to a website and with my application i want to insert in the login_form my username and password automatically evary 15 minutes....which control should i use? Thank you
use the webbrowser control, if you go into references in your .net application, you need to select it from the COM tab, and it should be called "Microsoft Internet Controls"
thank you very much, but how can i use this control to put the data into the text field of the web site?
Quote:
Originally posted by Frenzi85
thank you very much, but how can i use this control to put the data into the text field of the web site?
i can't do it right now because i am busy... but if you don't figure it out, I will try to post you an example app later on today
thank you very much you are the best
this example will show you how to fill in fields in an html form that is loaded into the webbrowser control on a windows form
it then submits the html form
since its just an example, it doesnt really submit any data, but navigates to microsoft.com, but will give you the knowledge to implement it how you need it in your own app.
thank you very much...but how can i automatically press the button to send the data by my application??
oops...sorry for the stupid question...thank you again...!!!
Hi Kleinma,
I tried to modify the code you have posted here and migrate it to vb2005, but i get an error when i run it.
The error is: NullreferenceException was unhandled.
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load webBrowser.Navigate("http://www.simpleclient.com/index.php") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click webBrowser.Document.forms.item(, 0).elements("username").value = txtField1.Text webBrowser.Document.forms.item(, 0).elements("passwd").value = txtField2.Text webBrowser.Document.forms.item(, 0).submit() End Sub Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed webBrowser = Nothing End Sub
Can you help me with this one.
What I am trying to do is to login on my website using vb.net. Many Thanks for the help.
look at my signature.. there is a link to a better example I made to manipulate webpages... it was built using 2005
Many Thanks, This will help me a lot.
Hi Kleinma,
Nice example to automate forms. It works fine and helps you to start getting around with webcontrol and forms. Just a quick question. After submiting a form, how do I get the current URL of webbrowser control ? I mean, when I try "curURL = webbrowser.url.ToString" my VB 2005 says url is a not a member of axsHDoc...." so I can't get the current url into a variable and take a decision based on what url my browser is.
Thanks for any light on this.
Mauver
Anyone can help ? Thanks in advance.
im just wondering if it can apply it in visual basic 6, anyone can help me converting the example in vb6?
Please don't Hijack threads Or pull up old threads. If you need help start a new one.
okay i logged in because i couldnt find out how to fill/submit a form with the web browser object and u guys came the closest, navigate to the target of the form and thats where the form gets submitted.
You guys are great. I am relatively new to .NET programming and can always find what I am looking for here. A+ for all efforts and information. Thanks again and again.