zwei1121

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 31 下一页

2015年2月27日 #

摘要: 1,得到网页上的链接地址:string matchString = @"]+href=\s*(?:'(?[^']+)'|""(?[^""]+)""|(?[^>\s]+))\s*[^>]*>";2,得到网页的标题: string matchString = @"(?.*)";3,去... 阅读全文
posted @ 2015-02-27 21:17 zwei 阅读(130) 评论(0) 推荐(0) 编辑

2015年1月29日 #

摘要: http://blog.163.com/qimo601@126/blog/static/1582209320143354446462/@ECHO OFF:IE10HACKREG ADD "HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer" /... 阅读全文
posted @ 2015-01-29 13:47 zwei 阅读(715) 评论(0) 推荐(0) 编辑

2014年12月22日 #

摘要: http://samsaffron.com/archive/2012/01/16/that-annoying-insert-problem-getting-data-into-the-db-using-dapper 阅读全文
posted @ 2014-12-22 15:18 zwei 阅读(140) 评论(0) 推荐(0) 编辑

2014年12月16日 #

摘要: var propertyType = propertyInfo.PropertyType;if (propertyType.IsGenericType && propertyType.GetGenericTypeDefinition() == typeof(Nullable)) ... 阅读全文
posted @ 2014-12-16 10:12 zwei 阅读(497) 评论(0) 推荐(0) 编辑

2014年11月27日 #

摘要: In a T4 template the executing assembly is not yours but one from the T4 engine.To access types from your assemblies, you have to perform the followin... 阅读全文
posted @ 2014-11-27 14:23 zwei 阅读(217) 评论(0) 推荐(0) 编辑

2014年11月12日 #

摘要: http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/ 阅读全文
posted @ 2014-11-12 14:11 zwei 阅读(198) 评论(0) 推荐(0) 编辑

2014年11月7日 #

摘要: else if (type == typeof(decimal)) return (decimal)pk == default(decimal); public override void PreExecute(IDbCommand cmd) { //cmd.GetType().GetPropert 阅读全文
posted @ 2014-11-07 14:34 zwei 阅读(561) 评论(0) 推荐(0) 编辑

2014年10月22日 #

摘要: public static T ConvertAndAssignment(this object obj) where T : new() { T t = new T(); PropertyInfo[] propertys = obj.Get... 阅读全文
posted @ 2014-10-22 17:33 zwei 阅读(549) 评论(0) 推荐(0) 编辑

2014年10月15日 #

摘要: 当从浏览器返回一个文件时,需要指定ContentType,以下是Office2007对应的值: "application/vnd.openxmlformats-officedocument.wordprocessingml.template" (for .dotx files) "applica... 阅读全文
posted @ 2014-10-15 09:03 zwei 阅读(601) 评论(0) 推荐(0) 编辑

2014年10月13日 #

摘要: PS:学了正则表达式那么久,也没做出什么像样的模式出来,早上一觉醒来突发奇想,下定决心要证明一下咱正则可不是白学的——于是选择了最常见的日期匹配……日期格式:年-月-日,即yyyy-mm-dd,如今天的日期为2008-11-1,当然按照yyyy-mm-dd的模式就是2008-11-01。我们的表达式... 阅读全文
posted @ 2014-10-13 16:47 zwei 阅读(17246) 评论(0) 推荐(1) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 31 下一页