摘要: mysql执行update报错update library set status=true where 1=1 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHE... 阅读全文
posted @ 2014-11-16 17:46 Deep_Blue 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 典型的文件上传表单 文件上传操作public ActionResult Index(HttpPostedFileBase file)if (file != null){ string strpath = Server.MapPath("~/files/"+ file.FileName); //获... 阅读全文
posted @ 2014-09-05 13:51 Deep_Blue 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 资源下载:ckeditor第一步,引入必须文件“~/ckeditor/ckeditor.js”第二步,替换文本域 阅读全文
posted @ 2014-09-05 13:45 Deep_Blue 阅读(220) 评论(0) 推荐(0) 编辑
摘要: , 用户名: 密码: 登录 重置 上面这种写法,通过easyui的ajax提交,后台获取不到表单数据,只需要将表单嵌套在#win的di... 阅读全文
posted @ 2014-08-24 08:31 Deep_Blue 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 今天准备学习singleton pattern,顾单词思含义,就是一个实例的意思。单例的实现思路是:私有化构造函数,提供公有方法获取类的实例。下面定义一个音乐播放器类MusicPlayer,观察单例的实现方法class MusicPlayer{ private static readonly ... 阅读全文
posted @ 2014-08-16 12:25 Deep_Blue 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要介绍ninject在IOC方面的实现,至于IOC的含义,网络资源很丰富,我这儿就不再赘述了。官方的文档其实挺好的,只是本人英语很烂,看起来比较费劲,下面这些东西是看官方的代码推敲的,我觉得应该能够说明一些问题,希望给和我一样的初学者有一些帮助吧。这里用一个小案例开始,也就是官方案例的改版... 阅读全文
posted @ 2014-08-16 00:00 Deep_Blue 阅读(335) 评论(0) 推荐(0) 编辑