摘要: 1.下载安装URL重写模块:Microsoft URL Rewrite Module 32位:http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi 阅读全文
posted @ 2017-06-20 16:38 懒人境界 阅读(14489) 评论(1) 推荐(0)
摘要: /// /// 关键字替换 /// /// /// public string TagReplace(string body) { string[] begin = this.txtTagBegin.Text.Split('|'); ... 阅读全文
posted @ 2017-06-12 10:00 懒人境界 阅读(4372) 评论(0) 推荐(0)
摘要: string body = PostWebRequest(txtURL.Text, textBox2.Text); if (webBrowser1.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); ... 阅读全文
posted @ 2017-06-12 09:58 懒人境界 阅读(1233) 评论(0) 推荐(0)
摘要: /// /// Post提交数据 /// /// URL /// 参数 /// private string PostWebRequest(string postUrl, string paramData) { string ret = s... 阅读全文
posted @ 2017-06-12 09:57 懒人境界 阅读(11742) 评论(0) 推荐(0)
摘要: /// 从字符串转换到16进制表示的字符串 /// 编码,如"utf-8","gb2312" /// 是否每字符用逗号分隔 public static string ToHex(string s, string charset, bool fenge) { if ((s.Length % 2) != 0... 阅读全文
posted @ 2017-06-12 09:54 懒人境界 阅读(14903) 评论(0) 推荐(0)
摘要: select * into temp from XX order by newid() -- 复制表结构 truncate table XX -- 清空表 SET IDENTITY_INSERT XX OFF insert into XX(gameid) select gameid from temp order by newid() -- 随即写入 SET IDENTITY_INSER... 阅读全文
posted @ 2017-06-06 11:36 懒人境界 阅读(300) 评论(0) 推荐(0)
摘要: /// /// 获取网页源代码 /// /// /// private string GetWebRequest(string url) { if (!url.StartsWith("http://")) return "... 阅读全文
posted @ 2017-05-27 16:22 懒人境界 阅读(670) 评论(0) 推荐(0)
摘要: string[] listUrl = String.Join(",", list.Replace("\r\n", ",").Split(',').Distinct()).Split(','); Array.Reverse(listUrl);//反过来 阅读全文
posted @ 2017-05-27 16:19 懒人境界 阅读(171) 评论(0) 推荐(0)
摘要: 用法 阅读全文
posted @ 2017-05-27 16:17 懒人境界 阅读(981) 评论(0) 推荐(0)
摘要: /// /// 获得字符串中开始和结束字符串中间得值 /// /// 字符串 /// 开始 /// 结束 /// public string GetValue(string str, string s, string e) { ... 阅读全文
posted @ 2017-05-27 16:15 懒人境界 阅读(348) 评论(0) 推荐(0)