会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海阔天空
本博客大部分内容转自其他博客,一般都注明了转载网址,如有侵犯版权,敬请告知!!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
58
59
60
61
62
63
64
65
66
···
77
下一页
2015年10月9日
mvc 数据验证金钱格式decimal格式验证
摘要: 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)
2015年10月8日
在mvc中 怎么给@Html.HiddenFor()赋值
摘要: @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)
Controller向View传值方式总结
摘要: 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)
MVC中HTML控件设为只读readonly
摘要: 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)
使用EntitysCodeGenerate
摘要: 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)
2015年10月7日
关于ASP.NET MVC的Html.BeginForm()方法
摘要: http://zhidao.baidu.com/link?url=9j53URZJv2B9W-TPtQAaKCRbqIcYy2r3WNO0NDzciTON0EYj5Hhd3rl3UlIllK1CqOCvC_aKiQ8aRSLBm1E9Dq我知道这个Html.BeginForm()方法是构建表单的,比...
阅读全文
posted @ 2015-10-07 20:07 _海阔天空
阅读(1168)
评论(0)
推荐(0)
.net mvc 一个Action的 HttpGet 和 HttpPost
摘要: 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)
在ASP.NET MVC中对表进行通用的增删改
摘要: 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)
ASP.NET MVC3 入门指南之数据验证[源码RAR下载]
摘要: http://www.cnblogs.com/BingoLee/archive/2011/12/23/2298822.html前言:无论你编写什么样的网页程序,都需要对用户的数据进行验证,以确数据的有效性和完整性。ASP.NET MVC3允许你采用一种被称之为“数据注释”的方式来进行数据验证,这种验...
阅读全文
posted @ 2015-10-07 14:57 _海阔天空
阅读(236)
评论(0)
推荐(0)
ASP.NET MVC开发,编辑页面和添加页面基本相同,我们控制器 Add Edit是共用同一个View吗?
摘要: 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
下一页
公告