摘要: //截取##之间的内容,检索所有的数据 string a = "select * from yw_020102 where CustomerNo='#CustomerNo#'"; Regex reg = new Regex("(?i)(?<=#)[^a]*(?=#)");//commend by d 阅读全文
posted @ 2016-05-24 11:05 siaslfs 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 1 public class IPHelper 2 { 3 public static string GetVisitorsIPAddress() 4 { 5 string result = String.Empty; 6 7 result = ... 阅读全文
posted @ 2015-12-18 11:01 siaslfs 阅读(165) 评论(0) 推荐(0) 编辑
摘要: XMLHttpRequest cannot load http://v.xxx.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63... 阅读全文
posted @ 2015-12-17 12:16 siaslfs 阅读(807) 评论(0) 推荐(0) 编辑
摘要: #region 生成随机字符码 public string CreateVerifyCode(int codeLen) { if (codeLen == 0) { codeLen = Length;... 阅读全文
posted @ 2015-10-28 14:57 siaslfs 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一、使用ICSharpCode.SharpZipLib.dll; 下载地址 http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx二、基于(ICSharpCode.SharpZipLib.dll)的文件压缩方法,类文件压缩文件usingSystem;usingSystem.IO;usingSystem.Collections;usingICSharpCode.SharpZipLib.Checksums;usingICSharpCode.SharpZipLib.Zip;namespaceFileCompress{/////. 阅读全文
posted @ 2014-04-10 14:50 siaslfs 阅读(226) 评论(0) 推荐(0) 编辑
摘要: int? 代表可以为null的int类型,一般情况下int a,这个a只能赋值成int类型int? a,除了可以赋值int类型的值外,还可以赋值为null,就是a = null;参见http://msdn.microsoft.com/zh-cn/library/2cf62fcy.aspx使用可以为null 的类型(C# 编程指南)http://msdn.microsoft.com/zh-cn/library/1t3y8s4s.aspx可以为null 的类型(C# 编程指南) 阅读全文
posted @ 2012-08-04 11:04 siaslfs 阅读(881) 评论(0) 推荐(1) 编辑
摘要: <span id="tiao">3</span><a href="javascript:countDown"></a>布丁足迹;秒后自动跳转……<meta http-equiv=refresh content=3;url='/search/billsearch.jsp'</ul><!--脚本开始--> <script language="javascript" type=""> function countDo 阅读全文
posted @ 2012-07-29 14:59 siaslfs 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 第一次使用博客园,没有什么感觉,以后慢慢体会吧! 阅读全文
posted @ 2012-07-28 14:01 siaslfs 阅读(80) 评论(0) 推荐(0) 编辑