日期:2014-05-18 浏览次数:20869 次
using System.Net; WebClient wc = new WebClient(); string webstr = ""; try { webstr = System.Text.Encoding.Default.GetString(wc.DownloadData(url)); } catch (Exception ee) { MessageBox.Show("错误!" + ee.Message.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); RemoveStatus(); return; }