I have a webpage loading inside my WinForm application using C#
I need to programatically type data into specific fields on that page (without using WATIN).
If anyone has any other solution, I am open to it.
The page in question has NO AJAX or JavaScript. They are simple HTML data entry forms.
Use WebClient to download the page and use HtmlAgilityPack to parse it.
An example:
You can do so using the
Document
property of theWebBrowser
control :C# code:
Demo HTML page loaded into the
WebBrowser
Control:Assuming you are loading the web page into a WebBrowser control on your WinForm app, you should be able to access the document via the WebBrowser.HtmlDocument.DomDocument property. This is an unmanaged reference to the IE DOM for the page through the MSHTML.IHTMLDocument2 interface.
Use the MSHTML.Dll and SHDocVw.dll
I am just paste code that transfre the code from winform to IE browser in which you just click on button data is transfer to web page but controls as same on web page as well on yours Html page
You make changes as you want I am sure it works