Yes and no. Those DOM manipulations are done purely on the client side after the document is already delivered from the HTTP server in
HttpWebResponse
. So, if you only download the HTML file from the server (using
HttpWebRequest
) you can only get the document as it is before it's DOM is manipulated.
So, what can you do? You can reproduce all those manipulations on the client side as the Web browser does. For this purpose, you can navigate to the Web page using
System.Windows.Forms.WebBrowser
. You can even manipulate DOM yourself using the instance of this class. See
System.Windows.Forms.WebBrowser.Document
,
System.Windows.Forms.WebBrowser.DocumentText
, the events
System.Windows.Forms.WebBrowser.Navigated
,
System.Windows.Forms.WebBrowser.DocumentCompleted
in
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx[
^].
—SA