MVC3 TextBoxFor 设置readyonly

@Html.TextBoxFor(model => model.Title, new { @readonly = "readonly", style = "width:307px;height:29px;float:left;" })

*注意:readonly前一定要加@

posted @ 2012-01-06 16:07  罗虎  阅读(689)  评论(0编辑  收藏  举报