string pageHtml;
WebClient myWeb = new WebClient();//WebClient()根据特定url获取文件
myWeb.Credentials = CredentialCache.DefaultCredentials;//获取身份检测的凭证
Byte[] pageData = myWeb.DownloadData(url);
//string pageHtml = Encoding.Default.GetString( pageData );
pageHtml = Encoding.UTF8.GetString(pageData);//pageHtml 为读取的html字符串