Well I am using the
WebClient.DownloadString in order to scrap a webpage unfortunately the
DownloadString gets me the page source without the CSS and JS updates (which are made in the internet explorer while page loads).
So I was wondering how can I use WebClient to load the whole page the same way internet explorer or
WebBrowser control does ? (with the css and js code injections)
So I was wondering how can I use WebClient to load the whole page the same way internet explorer or WebBrowser control does ?</blockquote>
You can't do that. The
WebClient class is used to download a <strong>SINGLE</strong> resource using the HTTP protocol. It doesn't understand the concept of HTML. If you need to download associated resources in this HTML you will have to use an HTML parser (such as <a href="http://htmlagilitypack.codeplex.com/" rel="nofollow">