Mvc中设置控件属性

 
例:
@Html.TextBox(“HTML Control的名”,”這個TextBox的值”, HTML 特性設定/htmlAttributes new{ disabled=”true”})
 
样例:
@Html.TextBox("sendid", Model.Name, new { @readonly = "true" })
第三个参数 直接设置控件属性
posted @ 2012-09-27 12:41    阅读(358)  评论(0编辑  收藏  举报