上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 77 下一页
摘要: http://www.cnblogs.com/wujilong/p/3499340.htmlmvc 数据验证金钱格式decimal格式验证首先看下代码1 /// 2 /// 产品单价3 /// 4 [Display(Name = "产品单价")]5 [Range(typeof(decimal), "... 阅读全文
posted @ 2015-10-09 10:41 _海阔天空 阅读(461) 评论(0) 推荐(0)
摘要: @Html.HiddenFor(model => model.CreatedBy, new { @value=currentInfo.UserID}) value始终是null@Html.TextBoxFor(model => model.CreatedBy, new { @value=curre... 阅读全文
posted @ 2015-10-08 22:45 _海阔天空 阅读(17791) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/guohu/p/4377974.html总结发现ASP.NET MVC中Controller向View传值的方式共有6种,分别是:ViewBagViewDataTempData向普通View页面传一个Model对象向强类型页面传传一个Model对象用一个... 阅读全文
posted @ 2015-10-08 21:50 _海阔天空 阅读(1669) 评论(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 _海阔天空 阅读(1458) 评论(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 _海阔天空 阅读(762) 评论(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 _海阔天空 阅读(828) 评论(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 _海阔天空 阅读(236) 评论(0) 推荐(0)
摘要: http://q.cnblogs.com/q/51693/这种的话,一般公用就好了。,如下的写法: [HttpGet] public ActionResult UserManage(int userId=0) { if (userId==0) ... 阅读全文
posted @ 2015-10-07 12:17 _海阔天空 阅读(1131) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 77 下一页