asp.net MVC3.0 中html.TextBox() 怎么添加时间控件? html.TextBox() 需要绑定个PlanBeginTime的字段。怎么写啊 时间控件有 Class="Wdate" onfocus="WdatePicker()" 2个属性。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Html.TextBox("name", "value", new { @class = "wdate", onfocus = "WdatePicker()" }) 我的 字段值是这种形式: t => t.PlanBeginTime 给html.TextBox 赋值的。那要怎么写啊? 那就用 Html.TextBoxFor(t => t.PlanBeginTime, null, new { @class = "wdate", onfocus = "WdatePicker()" })那些扩展方法大多有好几个重载,看看就知道了。 上面写多了个参数Html.TextBoxFor(t => t.PlanBeginTime, new { @class = "wdate", onfocus = "WdatePicker()" }) 可是 这样写 有报错 "TextBoxFor方法没有任何重载采用3个参数"! 还有个问题是: 用 Html.TextBoxFor(t => t.PlanBeginTime, new { @class = "wdate", onfocus = "WdatePicker()" }) 时做 添加功能 保存不了 数据 这是为什么呀? 还有个问题是: 用 Html.TextBoxFor(t => t.PlanBeginTime, new { @class = "wdate", onfocus = "WdatePicker()" }) 时做 添加功能 保存不了 数据 这是为什么呀? 用 MY97 时间控件 选择时间后 保存 提示: SqlDateTime 溢出。必须介于 1/1/1753 12:00:00 AM 和 12/31/9999 11:59:59 PM 之间。 ??? 我有 提交到 Controller.cs 里头啊 有保存呀 而且 就时间字段保存不了 其他的 比如标题 都能保存。 用 Html.TextBoxFor(t => t.PlanBeginTime, new { @class = "wdate", onfocus = "WdatePicker()" }) 时做 添加功能 保存不了 数据 这是为什么呀? 我知道了 是以为我还有 2个时间字段 没有赋值 然后就报错了 呵呵 谢谢各位的帮忙 特别是 KarasCanvas 。 ASP.NET如果调用存储过程?分为多种~带参数,带返回值 之类的一些情况 我现在该怎么办~~~? Ajax的Accordion中,添加控件。 Expression Web 视频教程 求一个最简单的ASP网页代码!,高手都来看看啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 状态栏上可以加链接吗?请问!!! 数据入库时遇到的一些问题 vs2003下面的SLN在VS2005下面无法编译通过,好像说数据库链接不存在,大家帮帮我 求高手将window.open改为window.showModalDialog 关于panel的用法!(急) vs2005 中的radiobuttonlist 获取static代码块中的变量值
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货