Hack Forums
[.NET] Filling in a web form? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Filling in a web form? (/showthread.php?tid=4106534)



Filling in a web form? - Drizzy‎‎ - Mar 9, 2014

So I'm trying to fill in a web form, which I have done before, but it appears to not be working for me now.

Textbox I'm trying to fill in:
[Image: AnuKmNJ.png]

Code:
Code
Dim bag1code As HtmlElement = WebBrowser1.Document.GetElementById("bag1_code")

bag1code.SetAttribute("value", "6")

And before anyone asks. Yes, the webpage is fully loaded.
And get the following error:
[Image: I3Uczo1.png]


* - SIM-1676753 - Mar 9, 2014

You have to loop through an array of elements.