I'm having problems trying to get HTML content from a website.
object WebpageContent;
mshtml.HTMLDocu ment MSHTMLobj = new mshtml.HTMLDocu ment();
WebpageContent = MSHTMLobj.creat eDocumentFromUr l(http://www.microsoft.com,
"");
I get this error:
The server threw an exception.
I have also tried declaring with HTMLDocumentCla ss() and IHTMLDocument2( )
with no luck.
Any suggestions?
Thanks,
Brett
object WebpageContent;
mshtml.HTMLDocu ment MSHTMLobj = new mshtml.HTMLDocu ment();
WebpageContent = MSHTMLobj.creat eDocumentFromUr l(http://www.microsoft.com,
"");
I get this error:
The server threw an exception.
I have also tried declaring with HTMLDocumentCla ss() and IHTMLDocument2( )
with no luck.
Any suggestions?
Thanks,
Brett
Comment