0
我有下面的代码行:将@ Html.TextBoxFor设置为只读。 MVC,Visual Basic中
@Html.TextBoxFor(Function(model) model.EmployeeName, New With {.htmlAttributes = New With {.class = "form-control"})
我通过通过这个文本框的默认值从我的控制,因此,我想使这个领域还没有看到只读。
我已经尝试使用:
@readonly = "readonly"