Right now, I am using MSHTML to extract data from NAME/ID tags through AX web browser control, and it works well for its intended purpose. I know that the .NET browser is supposed to be the way to go, but I cant find where it will allow me to search for an element by name like so:
.getelementsbyname("ELEMENTNAME").item(#)
Not all the fields I pull have ID tags, and not all of them have any tags other than html table tags. I’m simply wondering if there is a .net reference similar to MSHTML that is compatible with the .net browser? As well, what advantages exist for using the .net browser? Or does this sort of thing end up being personal preference? Thanks for the advice!
Did you look into Html Agility Pack? You don’t need a browser control to be able to pull elements from a web page. Even if you do need a browser control for other purposes, you can pull its HTML property (or whatever) and feed that into this agility pack. I never used it myself, but it’s been suggested here many times, so it must be good enough to try.