Asp.net Mvc 使用笔记

 1.Html.TextBoxFor 用法

单个属性:<%= Html.TextBoxFor(model => model.ReturnDate, new { size = 20 })%>

多个属性:<%= Html.TextBoxFor(model => model.CityFromRoute2, new Dictionary<string, object>() { {"size", 20 }, {"readnoly", "readnoly" } })%>

              <%= Html.TextBoxFor(model => model.Rfid, new Dictionary<string, object>() { { "readonly", "readonly" }, { "style", "border-color:white" } })%>

posted @ 2011-01-13 17:27  clound  阅读(699)  评论(0编辑  收藏  举报