Link to home
Start Free TrialLog in
Avatar of Philippe Renaud
Philippe RenaudFlag for Canada

asked on

VB.NET HtmlDocument Source

Hello EE,

When I go over a specific web site and look at the source in Chrome Versus Internet Explorer, Its a bit different. (probably the developers renders differently by browsers.) For example, one or two div with class are visible inside the source of IE but not under Chrome.


My question, inside VISUAL STUDIO, in vb.net, if I open via htmlDocument with HTMLAgilityPack and I see the source, its the same as my Chrome source.

How Can I make happen to see the source as like I saw in my IE source ?

I saw in internet to use mshtml and IhtmlDocument but if I understand well this is obsolete...
I dont really want to use WebBrowser object also.... any idea ?
ASKER CERTIFIED SOLUTION
Avatar of Francisco Igor
Francisco Igor
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Philippe Renaud

ASKER

ok and while i search once i know.. how do i change a useragent in vb?
Looks like it will change only the userAgent for WebBrowser control no ?

I dont understand if its possible to change only for the HtmlDocument variable (i dont have any web browser control in my app)