例:
@Html.TextBox(“HTML Control的名”,”這個TextBox的值”, HTML 特性設定/htmlAttributes new{ disabled=”true”})
样例:
@Html.TextBox("sendid", Model.Name, new { @readonly = "true" })
第三个参数 直接设置控件属性
转载于:https://www.cnblogs.com/x-xk/archive/2012/09/27/2705448.html