Hi,
I have a windows control containing the web browser control. The user makes
some changes to the form in the web browser control, and then the data is
saved.
I now need to convert this form contained in the web browser control to sit
inside a web form. I can load the data quite easily. But in the 'windows'
version of the control, saving the data is made easy by being able to
reference the Document object of the Webbrowser control and then examing the
HtmlElement objects and their values.
If I am doing this in an ASP form now, is there any way of still grabbing an
HtmlDocument object from the browser? I have lots of code, like the example
below, which i need to work with.
HtmlElementCollection tableRows =
this.webBrowser.Document.GetElementsByTagName("tr" );
foreach (HtmlElement tr in tableRows)
{ /* Do work here */ }
Ideally, I would want to keep the code which retrieves web form values
inside my code behind.
Many thanks, CodeRazor