Совет. Это простое наличие атрибута readonly / disabled, который делает элемент readonly или отключен в браузере.
@Html.TextBoxFor(x => x.Name, isReadonly ?(object) new { @readonly = true } : new { /*Some other attributes*/ })