09 2016 档案

当用反射获取一个model,这个model里面字段有nullable的时候,获取字段真实类型
摘要:Using Reflection to Determine whether an Type is Nullable And Get the underlying Type /// /// Converts a Generic List into a DataTable /// /// //... 阅读全文

posted @ 2016-09-30 11:25 tongdengquan 阅读(277) 评论(0) 推荐(0)

自定义alert和confirm
摘要:var common = {};common.showAlert = function (msg) { var html = ""; html+=""; html+=""; html+=""; html+=""; html+="提示"; html+=""... 阅读全文

posted @ 2016-09-27 11:32 tongdengquan 阅读(266) 评论(0) 推荐(0)

web上传大文件的配置
摘要:1、项目本身的webconfig 在字段下 2、找到C:\Windows\System32\inetsrv\config\schema下(我的是window7)IIS_schema.xml文件下面的字节 默认是30m 可以在后面加个0 如果这个文件更改有权限限制,则 下面我... 阅读全文

posted @ 2016-09-14 15:20 tongdengquan 阅读(268) 评论(0) 推荐(0)

windows服务-log4net的使用
摘要:本文转自http://www.cnblogs.com/puzi0315/archive/2012/08/08/2628966.html Log4net监控服务状态 对于比较复杂的逻辑,可以使用log4net来记录程序的执行过程中的关键数据,以此来监控服务的逻辑是否完备。 1.在项目中引入... 阅读全文

posted @ 2016-09-07 10:35 tongdengquan 阅读(306) 评论(0) 推荐(0)