Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Log on to webpage


Log on to webpage

Author
Message
tonyallan8128
tonyallan8128
Forum God
Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)Forum God (1.1K reputation)

Group: Forum Members
Posts: 3, Visits: 14
Ok . I am trying to write some code to logon to a webpage. I have a form with webbrowser1 navigated to the login page.



the script for the input of UserId, Password and Submit inputs is as follows.









XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX





User ID






Password
















XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX





This is the code that i have tried.



'Inputs ID

WebBrowser1.Document.GetElementById("UserID").SetAttribute("Value", UserID) 'XXXXX this causes a nullreferance exception



'Inputs Password

WebBrowser1.Document.GetElementById("Password").SetAttribute("Value", Password)



    'Submits information

   WebBrowser1.Document.GetElementById("LogonForm").InvokeMember("submit")







Any suggestions would be appreciated.

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search