日期:2011-06-09 浏览次数:20447 次
private string GetHTML(string url)
{
System.Net.WebClient client = new System.Net.WebClient();
try
{
byte[] buf = client.DownloadData(url);
//message.Text = System.Text.Encoding.GetEncoding("GB2312").GetString(buf);
return System.Text.Encoding.GetEncoding("GB2312").GetString(buf);
}
catch( Exception err)
{
message.Text = err.Message;
}
return null;
}