摘要: 1.与google日历连接,别忘记加入theme:true4.buttonText:{prev:'昨天',next:'明天',prevYear: '去年',nextYear: '明年',today:'今天',month:'月',week:'周',day:'日'}5.每周的第一天是哪天Sunday=0... 阅读全文
posted @ 2015-04-16 09:56 余粮 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.通过把项目分成model view和controller,使得复杂项目更加容易维护。2.没有使用view state和服务器表单控件,可以更方便的控制应用程序的行为3.应用程序通过controller来控制程序请求,可以提供丰富的url重写。4.对单元测试的支持更加出色5.在团队开发模式下表现更... 阅读全文
posted @ 2015-03-18 17:33 余粮 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 在去年的项目中使用了TransactionScope,现在总结下TransactionScope的使用说明一、TransactionScope是.Net Framework 2.0之后,新增了一个名称空间。它的用途是为数据库访问提供了一个“轻量级”[区别于:SqlTransaction]的事物。使用... 阅读全文
posted @ 2015-02-26 09:59 余粮 阅读(3829) 评论(0) 推荐(0) 编辑
摘要: public class BadWordFilter { #region 变量 private HashSet hash = new HashSet(); private byte[] fastCheck = new byte[char.MaxValue]; private byte[] fast... 阅读全文
posted @ 2015-02-06 10:04 余粮 阅读(1252) 评论(1) 推荐(0) 编辑
摘要: 方法一://须添加对System.Web的引用 usingSystem.Web.Security; ... /// /// SHA1加密字符串 /// /// 源字符串 /// 加密后的字符串 publicstringSHA1(stringsource) { returnFormsAuthent... 阅读全文
posted @ 2015-02-06 09:58 余粮 阅读(159) 评论(0) 推荐(0) 编辑