how to submit information to a web page with vb.net
-
hi all i have a webbrowser control, and i m trying to store all information about the user.(the ids, passwords etc) when user first time use my application, second time when user opens my application all work has been done automatically ( all the things like open site, enter the id and password, go to the inbox, download attachment automatically. for confidential things like passwords i can ask the user to enter, but i still trying to explore how can i send this information back to the site. i tried to get the form which contain the textboxes that contain the id and password and the go button, but i m unable to get the values of those and enter my values in those textboxes. i have found some articles on the same that use the code (but i think that's from vb6 )
With mybrowser.document .All.Item("login").Value = "myloginid" .All.Item("passwd").Value = "mypassword" .Forms(0).submit End With
i can find the form that contain the id and password fields withIf Me.WebBrowser1.Document.Forms(1).Name = "loginform" Then
does some one has any idea then please let me know. thanks in advancehelp everyone
-
hi all i have a webbrowser control, and i m trying to store all information about the user.(the ids, passwords etc) when user first time use my application, second time when user opens my application all work has been done automatically ( all the things like open site, enter the id and password, go to the inbox, download attachment automatically. for confidential things like passwords i can ask the user to enter, but i still trying to explore how can i send this information back to the site. i tried to get the form which contain the textboxes that contain the id and password and the go button, but i m unable to get the values of those and enter my values in those textboxes. i have found some articles on the same that use the code (but i think that's from vb6 )
With mybrowser.document .All.Item("login").Value = "myloginid" .All.Item("passwd").Value = "mypassword" .Forms(0).submit End With
i can find the form that contain the id and password fields withIf Me.WebBrowser1.Document.Forms(1).Name = "loginform" Then
does some one has any idea then please let me know. thanks in advancehelp everyone
Take a look at the DigiOz Post To Web Form DLL. It does exactly that (includes source code and a demo project). You can get it here: http://www.digioz.com/dlls.php[^] Scroll about half way down the page and you will see it. :)
Pete Soheil DigiOz Multimedia http://www.digioz.com