上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
  2015年5月13日
摘要: 当程序中发生异常的时候,异常后面的代码将不会执行----------------------catch 了异常后,如果不处理,直接写 throw 即可,不用 throw ex; 示例如下:try{test();}catch{//异常处理throw;}而对于无须异常处理的情况,写法如下:try{tes... 阅读全文
posted @ 2015-05-13 11:23 雪原日暮 阅读(133) 评论(0) 推荐(0)
  2015年5月6日
摘要: /// /// 过滤掉html标签/// /// /// public static string RemoveHTML(string htmlstring){//删除脚本htmlstring = Regex.Replace(htmlstring, @"", "", RegexOptions.Ign... 阅读全文
posted @ 2015-05-06 15:03 雪原日暮 阅读(372) 评论(0) 推荐(0)
摘要: #region ParseToJson public static string ParseToJson(DataTable dt) { StringBuilder JsonString = new StringBuilder(); ... 阅读全文
posted @ 2015-05-06 15:02 雪原日暮 阅读(171) 评论(0) 推荐(0)
摘要: /// /// 转换字符串格式,可用于sql in /// /// /// public static string ParseToSQLIn(string lst) { Strin... 阅读全文
posted @ 2015-05-06 15:01 雪原日暮 阅读(706) 评论(0) 推荐(0)
摘要: /// /// 取出文本中的图片地址 /// /// HTMLStr public static string GetImgUr_l(string HTMLStr) {... 阅读全文
posted @ 2015-05-06 15:00 雪原日暮 阅读(160) 评论(0) 推荐(0)
摘要: /// /// 导出 /// /// 数据表 /// 工作簿名称 /// 报表名称 public static void Output(DataTable table, string SheetName, string reportName) { ... 阅读全文
posted @ 2015-05-06 14:59 雪原日暮 阅读(177) 评论(0) 推荐(0)
摘要: /// /// Get方法 /// /// url地址 /// 数据 格式为"aa=xx&bb=xxx" /// 请求结果 public static string HttpGetConnectT... 阅读全文
posted @ 2015-05-06 14:58 雪原日暮 阅读(144) 评论(0) 推荐(0)
摘要: /// /// C#反序列化JSON /// /// 返回类型 /// JSON字符串 /// public static T JsonDeserialize(string strJson) {... 阅读全文
posted @ 2015-05-06 14:57 雪原日暮 阅读(128) 评论(0) 推荐(0)
摘要: protected void btnUpload_Click(object sender, EventArgs e) { Button FU = (Button)sender; //文件保存目录路径 string sa... 阅读全文
posted @ 2015-05-06 14:55 雪原日暮 阅读(248) 评论(0) 推荐(0)
  2015年4月29日
摘要: 比如你要获取aaa.aspx?id=2使用方法为:var id= request('id'); 阅读全文
posted @ 2015-04-29 09:45 雪原日暮 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页