上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 76 下一页
摘要: http://www.cnblogs.com/guohu/p/4377974.html总结发现ASP.NET MVC中Controller向View传值的方式共有6种,分别是:ViewBagViewDataTempData向普通View页面传一个Model对象向强类型页面传传一个Model对象用一个... 阅读全文
posted @ 2015-10-08 21:50 _海阔天空 阅读(1667) 评论(0) 推荐(0)
摘要: http://www.th7.cn/web/html-css/201501/78934.shtml1.下拉框设为只读试了试用这个有效: @Html.DropDownListFor(model => model.SecondDevelopment, (SelectList)ViewBag.swsec... 阅读全文
posted @ 2015-10-08 20:54 _海阔天空 阅读(1457) 评论(0) 推荐(0)
摘要: http://bbs.csdn.net/topics/360256700publicDataSetxxx(DateTimestart,DateTimeend,stringtype){string[,]strArray=newstring[6,2]{{"0","11"},{"1","11"},{"2"... 阅读全文
posted @ 2015-10-08 10:40 _海阔天空 阅读(760) 评论(0) 推荐(0)
摘要: http://zhidao.baidu.com/link?url=9j53URZJv2B9W-TPtQAaKCRbqIcYy2r3WNO0NDzciTON0EYj5Hhd3rl3UlIllK1CqOCvC_aKiQ8aRSLBm1E9Dq我知道这个Html.BeginForm()方法是构建表单的,比... 阅读全文
posted @ 2015-10-07 20:07 _海阔天空 阅读(1168) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/freeliver54/p/3747836.html本文转自:http://stackoverflow.com/questions/11767911/mvc-httppost-httpget-for-actionController:[HttpGet]p... 阅读全文
posted @ 2015-10-07 17:54 _海阔天空 阅读(827) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/nuaalfm/archive/2009/11/11/1600811.html预备知识:1、了解反射技术2、了解C#3.0中扩展方法,分布类,Linq to object,Linq to sql3、了解ASP.NET MVC在项目中每添加一个表往往都要添... 阅读全文
posted @ 2015-10-07 17:37 _海阔天空 阅读(788) 评论(0) 推荐(1)
摘要: http://www.cnblogs.com/BingoLee/archive/2011/12/23/2298822.html前言:无论你编写什么样的网页程序,都需要对用户的数据进行验证,以确数据的有效性和完整性。ASP.NET MVC3允许你采用一种被称之为“数据注释”的方式来进行数据验证,这种验... 阅读全文
posted @ 2015-10-07 14:57 _海阔天空 阅读(229) 评论(0) 推荐(0)
摘要: http://q.cnblogs.com/q/51693/这种的话,一般公用就好了。,如下的写法: [HttpGet] public ActionResult UserManage(int userId=0) { if (userId==0) ... 阅读全文
posted @ 2015-10-07 12:17 _海阔天空 阅读(1130) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/byondocean/article/details/6871881初学C#的时候,老是被IEnumerable、IEnumerator、ICollection等这样的接口弄的糊里糊涂,我觉得有必要切底的弄清楚IEnumerable和IEnumerator的... 阅读全文
posted @ 2015-10-06 22:43 _海阔天空 阅读(228) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/aaapeng/archive/2010/01/20/1652151.html联合查询效率较高.以下例子来说明联合查询的好处t1表结构(用户名,密码) userid int username varchar(20) password varchar(20... 阅读全文
posted @ 2015-10-06 20:09 _海阔天空 阅读(466) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 76 下一页