会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
和谐
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2017年6月20日
IIS7 http自动跳转到https
摘要: 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)
2017年6月12日
C# 关键字替换
摘要: /// /// 关键字替换 /// /// /// public string TagReplace(string body) { string[] begin = this.txtTagBegin.Text.Split('|'); ...
阅读全文
posted @ 2017-06-12 10:00 懒人境界
阅读(4372)
评论(0)
推荐(0)
C# webBrowser 控件赋值
摘要: string body = PostWebRequest(txtURL.Text, textBox2.Text); if (webBrowser1.ReadyState != WebBrowserReadyState.Complete) { Application.DoEvents(); ...
阅读全文
posted @ 2017-06-12 09:58 懒人境界
阅读(1233)
评论(0)
推荐(0)
C# Post提交数据
摘要: /// /// Post提交数据 /// /// URL /// 参数 /// private string PostWebRequest(string postUrl, string paramData) { string ret = s...
阅读全文
posted @ 2017-06-12 09:57 懒人境界
阅读(11742)
评论(0)
推荐(0)
C# Hex编码和解码
摘要: /// 从字符串转换到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)
2017年6月6日
MSSQL 复制数据 并随机打乱写入
摘要: 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)
2017年5月27日
C# 获取网页源代码
摘要: /// /// 获取网页源代码 /// /// /// private string GetWebRequest(string url) { if (!url.StartsWith("http://")) return "...
阅读全文
posted @ 2017-05-27 16:22 懒人境界
阅读(670)
评论(0)
推荐(0)
string[] 清理重复+反转显示
摘要: string[] listUrl = String.Join(",", list.Replace("\r\n", ",").Split(',').Distinct()).Split(','); Array.Reverse(listUrl);//反过来
阅读全文
posted @ 2017-05-27 16:19 懒人境界
阅读(171)
评论(0)
推荐(0)
C# GetValueList 获得字符串中开始和结束字符串中间得值列表
摘要: 用法
阅读全文
posted @ 2017-05-27 16:17 懒人境界
阅读(981)
评论(0)
推荐(0)
C# GetValue 正则获取开始结束代码
摘要: /// /// 获得字符串中开始和结束字符串中间得值 /// /// 字符串 /// 开始 /// 结束 /// public string GetValue(string str, string s, string e) { ...
阅读全文
posted @ 2017-05-27 16:15 懒人境界
阅读(348)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告