The HTML is being displayed in a WinForm that is using the built-in WebControl
I’ve decided to try HTMLAgilityPack.
var query = from table in doc.DocumentNode.SelectNodes("//table[@class='TABLEBORDER').Cast<HtmlNode>()
from row in table.SelectNodes("tr").Cast<HtmlNode>()
from cell in row.SelectNodes("th|td").Cast<HtmlNode>()
select new {Table = table.Id, CellText = cell.InnerText};
foreach(var cell in query) {
Console.WriteLine("{0}: {1}", cell.Table, cell.CellText);
}
I updated the code as per @L.B
I get the following output
The thread '<No Name>' (0x1e94) has exited with code 0 (0x0).
:
Target
:
Triggerenabled?
:
Account
:
Passwordchanged?
:
Error message(if any)
The thread '<No Name>' (0x2564) has exited with code 0 (0x0).
The other data is clearly visible on the webcontrol.
EDIT
EDIT2