一个简单的基于.NET的WebClient,支持JavaScript [英] A simple .NET based WebClient with JavaScript support

查看:66
本文介绍了一个简单的基于.NET的WebClient,支持JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我来自http://www.codeproject.com/Articles/13574/A-simple-NET-based-WebClient-下载演示 - with-JavaScript-suppo



我试图显示网页的一部分但似乎在第一步下降。



使用(m_WebClient = new Cb.Web.WebClient())

{



m_WebClient = new Cb.Web .WebClient();



m_WebClient.Get(http://www.orcode.com/article/Internet_20122044.html); - 这里抛出异常

}



错误是:这个文件已经有一个DocumentElement节点。



可以帮助我,谢谢!

Hi,

I DownLoad a Demo from http://www.codeproject.com/Articles/13574/A-simple-NET-based-WebClient-with-JavaScript-suppo

I am trying to display part of a webpage but seem to be falling at the first step.

using (m_WebClient = new Cb.Web.WebClient())
{

m_WebClient = new Cb.Web.WebClient();

m_WebClient.Get("http://www.orcode.com/article/Internet_20122044.html");--here Throw an exception
}

the error is : This document already has a "DocumentElement" node.

can somebaody help me , thanks!

推荐答案

不要在快速答案下发布 - 如果你从一篇文章中得到了代码,那么就有了该文章底部的新消息按钮,可以将电子邮件发送给作者。然后他们会被告知你希望与他们交谈。

在这里发布这个依赖于他们匆匆而过并意识到这是为了他们。
Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


这篇关于一个简单的基于.NET的WebClient,支持JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆