I have a Windows Form with a WebBrowser control in it. I’m going to a page and I want the action of the form on that page.
SO when the HTML of the page looks like this:
<!doctype html>
<head>
<title>testing</title>
</head>
<body>
<form action="http://www.testing.nl/form.php?hoi=true" >
</form>
</body>
</html>
I want to receive http://www.testing.nl/form.php?hoi=true in C#. How can I do that?
-note- The URL is fake, just to show what i want…
This will go through all the forms in the webpage and extract the
actionattribute for each one:You have to make sure that the page is fully loaded.