摘要: 1.字符串替换 例如我想把如下格式记录中的NAME值修改为WANG string line="ADDR=1234;NAME=ZHANG;PHONE=6789"; Regex reg = new Regex("NAME=(.+);"); string modified = reg.Replace(li 阅读全文
posted @ 2016-10-06 18:41 烽火狼烟-秦 阅读(2319) 评论(0) 推荐(0) 编辑
摘要: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { if (!webBrowser1.IsBusy) Console.WriteLine("加载完毕!"); ... 阅读全文
posted @ 2016-10-06 18:34 烽火狼烟-秦 阅读(402) 评论(0) 推荐(0) 编辑
摘要: // WebClient private string GetWebClient(string url) { string strHTML = ""; WebClient myWebClient = new WebClient(); Stream myStream = myWebClient.... 阅读全文
posted @ 2016-10-06 18:26 烽火狼烟-秦 阅读(278) 评论(0) 推荐(0) 编辑
摘要: using System.Web; 引用system.web。 textBox2.Text = System.Web.HttpUtility.UrlDecode(textBox1.Text, System.Text.Encoding.GetEncoding("GB2312"));//将Url中的编码 阅读全文
posted @ 2016-10-06 17:57 烽火狼烟-秦 阅读(29650) 评论(0) 推荐(1) 编辑