截取开始字符串 结束字符串的中间字符串并返回
摘要:/// /// 指定开始字符串和结束字符串,截取中间的字符 /// /// 要截取的字符串 /// 开始字符串 /// 结束字符串 /// public static string GetValue(string str, string s, string e) ...
阅读全文
posted @
2016-12-28 15:56
雪原日暮
阅读(422)
推荐(0) 编辑
fiddlercore 抓包获取cookie的方法
摘要:需要添加fiddlercore 的dll引用
阅读全文
posted @
2016-12-28 15:39
雪原日暮
阅读(1197)
推荐(0) 编辑
文档共享报错
摘要:System.IO.FileStream stream = new System.IO.FileStream(fileFullPath, System.IO.FileMode.Open, System.IO.FileAccess.Read, FileShare.ReadWrite);
阅读全文
posted @
2016-12-28 08:57
雪原日暮
阅读(189)
推荐(0) 编辑
HttpWebRequest 上传图片
摘要:public string HttpUploadFile() { string url = "http://localhost:50380/WebForm1.aspx"; string filepath = "C:\\Users\\lei2.wang\\Desktop\\Capture.PNG"; stri...
阅读全文
posted @
2016-12-16 16:30
雪原日暮
阅读(3928)
推荐(0) 编辑
webbreswer 转成ie11
摘要:http://zhidao.baidu.com/link?url=pvYg-Z5fjOaFHrpdxFSjrDqkaUpvc-tY5VwtLjd7bfmdG4T80i0Rqkkv1zcApZiIq6wa9tCUC0u__X19Rr_74V49PDWb3gbPuxGsiwGfdaa输出 this.we
阅读全文
posted @
2016-12-12 14:02
雪原日暮
阅读(147)
推荐(0) 编辑
ttt
摘要:<div class="head1 head1_t"> <div class="head1_1"> <h1 style="display: block;"> <a><img src="/img/Logo_1.png" style="display: none;"><b style="display:
阅读全文
posted @
2016-12-09 18:06
雪原日暮
阅读(211)
推荐(0) 编辑
123
摘要:private void button2_Click(object sender, EventArgs e) { string url = ""; for (int i = 0; i < urls.Count; i++) { if (!string.IsNullOrEmpty(urls[i])) {
阅读全文
posted @
2016-12-06 20:49
雪原日暮
阅读(178)
推荐(0) 编辑
winform 上传
摘要:public class ImitateSelectFile { public void Select(HtmlElement htmlEle, string fileFullPath) { htmlEle.Focus(); SendKeys.Send("{Tab}"); SendKeys.Send(" "); DelayAndOperateDialog(fileFullPath); }...
阅读全文
posted @
2016-12-06 07:53
雪原日暮
阅读(284)
推荐(0) 编辑
webbreswer
摘要:为了帮助网友解决“怎么用C#的webBrowser模拟点击页面上的标签”相关的问题,中国学网通过互联网对“怎么用C#的webBrowser模拟点击页面上的标签”相关的解决方案进行了整理,用户详细问题包括:RT,我想知道:怎么用C#的webBrowser模拟点击页面上的标签,具体解决方案如下: 解决方案1: C#中的WebBrowser控件的使用 0、常用方法 Navigate(string ...
阅读全文
posted @
2016-12-01 13:28
雪原日暮
阅读(228)
推荐(0) 编辑