Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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!
Posted
Updated 14-Aug-13 5:46am
v2
Comments
ZurdoDev 14-Aug-13 11:41am    
Perhaps you would be so kind as to tell us the error so we don't have to guess?
Member 10202533 14-Aug-13 11:49am    
Thank you so much , I have updated the Theme, and the error is: This document already has a "DocumentElement" node.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900