2012年6月14日
摘要: 今天在ASP.NET上在写一个读取EXCEL文件内容的功能,但是IE8貌似把文件路径给屏蔽了,在IE6下面读取正常!有啥好办法? 阅读全文
posted @ 2012-06-14 15:47 DongD 阅读(152) 评论(0) 推荐(0) 编辑
  2012年6月9日
摘要: 作者接下来定义了另外一种ImovieFinder接口的实现<objectname="AnotherMovieFinder"type="Spring.Examples.MovieFinder.ColonDelimitedMovieFinder,Spring.Examples.MovieFinder"><constructor-arg index="0" value="movies.txt"/></object>ColonDelimitedMovieFinder的没有默认构造函数,需 阅读全文
posted @ 2012-06-09 22:53 DongD 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 看类图关系,一个MovieList类引用一个IMoveFinder对象,ImoveFinder有一个FindAll()的方法,此例中由SimpleMovieFinder实现。实际上就是由SimpleMovieFinder实现ImoveFinder接口,而MovieLister只知道ImoveFinder接口,是运行时动态确定ImoveFinder究竟是怎么实现的。几本思想就是:多态 + 面向接口编程在Spring .Net中是用 Injection 的方式实现的。把MovieList看作一个容器,在Config中声明。<objectsxmlns="http://www.spri 阅读全文
posted @ 2012-06-09 21:33 DongD 阅读(283) 评论(0) 推荐(0) 编辑
  2012年3月8日
摘要: RegularExpressionValidator控件中正则表达式用法 阅读全文
posted @ 2012-03-08 10:07 DongD 阅读(201) 评论(0) 推荐(0) 编辑
  2011年6月27日
摘要: //当天与该周星期一相差的天数private int getModdayNum(System.DayOfWeek dw){int weeknow = Convert.ToInt32(dw);int moddayNum = (-1) * weeknow+1;return moddayNum;} //当天与该周星期日相差的天数private int getSundayNum(System.DayOfWeek dw){int weeknow = Convert.ToInt32(dw);int sundayNum = 7-weeknow;return sundayNum;}//该周星期一的日期priv 阅读全文
posted @ 2011-06-27 09:20 DongD 阅读(621) 评论(0) 推荐(0) 编辑
  2009年12月9日
摘要: ASP.NET 安全认证(二)——灵活运用 Form 表单认证中的 deny 与 allow 及保护 .htm 等文件作者:寒羽枫(cityhunter172)第二部分 Form 认证的实战运用 话说上回,简单地说了一下 Form 表单认证的用法。或许大家觉得太简单,对那些大内高手来说应该是“洒洒水啦”“小 Kiss 啦(小意思)R... 阅读全文
posted @ 2009-12-09 15:13 DongD 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 运用Form表单进行ASP.NET认证 阅读全文
posted @ 2009-12-09 14:44 DongD 阅读(203) 评论(0) 推荐(0) 编辑
  2009年12月8日
摘要: IntroductionThis is the third of five articles about Host Workflow communication.In this series of articles, I try to show the different possibilities to implement communication, from the simplest cas... 阅读全文
posted @ 2009-12-08 14:24 DongD 阅读(323) 评论(0) 推荐(0) 编辑
  2009年12月7日
摘要: IntroductionThis is the second of five articles about Host Workflow communication.In this series of articles, I will try to show the different possibilities to implement communication, from the simple... 阅读全文
posted @ 2009-12-07 16:25 DongD 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Host and Workflow: Two Worlds to Communicate: Part I 阅读全文
posted @ 2009-12-07 14:38 DongD 阅读(422) 评论(0) 推荐(0) 编辑