摘要: View Code 1 1.固定文件存储<configSections> 2 <section name="log4net" type="System.Configuration.IgnoreSectionHandler"/> 3 </configSections> 4 <log4net> 5 <root> 6 <appender-ref ref="LogFileAppender" /> 7 </root> 8 <!--定义输出到文件中--> 阅读全文
posted @ 2012-08-17 11:26 yang-jian 阅读(226) 评论(0) 推荐(0) 编辑
摘要: ASP.NET MVC的路由系统通过对HTTP请求的解析得到表示Controller、Action和其他相关的数据,并以此为依据激活Controller对象,调用相应的Action方法,并将方法返回的ActionResult写入HTTP回复中 阅读全文
posted @ 2012-08-07 09:36 yang-jian 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 在开始执行命令 Subst b: %windir%\assembly 然后,系统会多一个虚拟的B分区,在这个分区中可以查找所有安装的dll。 不再需要用时,可以用以下命令将其删除: Subst b: /d 转载:http://pic.iteye.com/blog/622099 阅读全文
posted @ 2012-08-03 15:34 yang-jian 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 利用ICSharpCode.SharpZipLib.dll 压缩文件夹View Code 1 private void zip(string strFile, ZipOutputStream s, string staticFile) 2 { 3 if (strFile[strFile.Length - 1] != Path.DirectorySeparatorChar) 4 { 5 strFile = strFile + Path.DirectorySeparatorChar; 6 ... 阅读全文
posted @ 2012-08-02 14:09 yang-jian 阅读(251) 评论(0) 推荐(0) 编辑