日期:2014-05-17  浏览次数:20399 次

mvc文本框编辑问题
@Html.TextBoxFor(model => model.CityCode)如何让它只能显示不能编辑

------解决方案--------------------
Html.TextBox("EndDate","",new{@readonly="true"}) 
------解决方案--------------------
@Html.Password("UserPwd", Model.UserPwd, new { @disabled="disabled"})