Click here to Skip to main content
15,608,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using webbrowser control to login into https://www.itslb.com/tms/ website. I have written code for that but i am facing problem with password input type when i run this code password input box remain blank username contain value so why is it happen
My code like below

VB
Dim frmform As HtmlElement = WebBrowser1.Document.Forms("aspnetForm")
           frmform.All("ctl00_lnkLogin").InvokeMember("Click")

           frmform.All("ctl00_txtUserName").SetAttribute("value", sUserID)
           frmform.All("ctl00_txtPassword").SetAttribute("value", sPWD)
           frmform.GetElementsByTagName("select")(0).Document.GetElementsByTagName("option")(1).SetAttribute("selected", "true")

           'frmform.All("ctl00$cboTerminal").InvokeMember("SelectedIndexChanged")
           'frmform.GetElementsByTagName("select")(0).Document.GetElementsByTagName("option")(1).SetAttribute("selected", "true")
           frmform.All("ctl00_btnLogin").Enabled = True
           frmform.All("ctl00_btnLogin").InvokeMember("Submit")
Posted
Updated 21-Aug-11 19:22pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900