How to push submit button from code behind?
-
Hi, I am working on a .net c# windows application in which I use a webBrowser control. In the control I open an external webpage that has a login page and I fill in the username and password from my code behind. But I don’t know how I push the login button or execute de page. Is there someone out there that can give me a hint of how to do that?
-
Hi, I am working on a .net c# windows application in which I use a webBrowser control. In the control I open an external webpage that has a login page and I fill in the username and password from my code behind. But I don’t know how I push the login button or execute de page. Is there someone out there that can give me a hint of how to do that?
First you need to know what the id is of the button you want to click. Then you have to get the object type it correctly and do the .click() method for that type. If you haven't already I would add a reference to the microsoft.mshtml.dll This will give you access to the mshtml namespace which has all of the objects you might want to use their types. Ben
-
First you need to know what the id is of the button you want to click. Then you have to get the object type it correctly and do the .click() method for that type. If you haven't already I would add a reference to the microsoft.mshtml.dll This will give you access to the mshtml namespace which has all of the objects you might want to use their types. Ben