上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

2015年2月24日

两种方式传递参数

摘要: 详细详细 阅读全文

posted @ 2015-02-24 23:38 木屐 阅读(70) 评论(0) 推荐(0) 编辑

2015年2月23日

MVC自动填充

摘要: public ActionResult Register2(UserInfo userInfo)//自动填充(如果表单中表单元素的name属性的取值与实体类中属性的名字保持一致,会自动填充。) { userInfo.RegTime = DateTime.Now; ... 阅读全文

posted @ 2015-02-23 23:01 木屐 阅读(187) 评论(0) 推荐(0) 编辑

确保EF上下文线程内唯一

摘要: ShopEntities db = null; if (HttpContext.Current.Items["db"] == null) { db = new ShopEntities(); Htt... 阅读全文

posted @ 2015-02-23 16:59 木屐 阅读(347) 评论(0) 推荐(0) 编辑

linq的join

摘要: 简单查询: var result = from c in Entities.Customer select c;条件查询: 普通linq写法: var result = from c in Entities.Customer where c.Gender ==‘w’ select c; Lamb... 阅读全文

posted @ 2015-02-23 16:23 木屐 阅读(120) 评论(0) 推荐(0) 编辑

编码:隐匿在计算机软硬件背后的语言

摘要: var temp = demoEntities.Product .Where(p => p.ProductId > 0) .OrderBy(p => p.ProductId) .Skip(3 * 2) //... 阅读全文

posted @ 2015-02-23 16:22 木屐 阅读(152) 评论(0) 推荐(0) 编辑

EF删除数据

摘要: ShopEntities db = new ShopEntities(); var customers = from c in db.Customer where c.ID == 21 ... 阅读全文

posted @ 2015-02-23 00:48 木屐 阅读(250) 评论(0) 推荐(0) 编辑

插入数据返回主键值用 output inserted.UId

摘要: insert into [User](UName,UPwd) output inserted.UIdvalues('admin','dongdong'); 阅读全文

posted @ 2015-02-23 00:00 木屐 阅读(237) 评论(0) 推荐(0) 编辑

2015年2月19日

Fancybox丰富的弹出层效果

摘要: Fancybox是一款优秀的jquery插件,它能够展示丰富的弹出层效果。前面我们有文章介绍了facybox弹出层效果,相比facybox,fancybox显得功能更为齐全,它除了可以加载DIV,图片、图片集、Ajax数据,还能加载SWF影片,iframe页面等等。查看演示 下载源码fancybox... 阅读全文

posted @ 2015-02-19 22:53 木屐 阅读(184) 评论(0) 推荐(0) 编辑

jsrender

摘要: 阅读全文

posted @ 2015-02-19 22:10 木屐 阅读(169) 评论(0) 推荐(0) 编辑

回车登录

摘要: document.onkeydown = function (e) { if (e.keyCode == 13) { $("#login").click(); } } 阅读全文

posted @ 2015-02-19 20:27 木屐 阅读(83) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

导航