Campo Readonly (solo lectura) en la vista Create – mvc 5

Código para hacer que un campo se vuelva de solo lectura.

@Html.EditorFor(model => model.fechaIngreso, new { htmlAttributes = new { @class = “form-control”, @readonly = “readonly” } })

Leave a Reply

Your email address will not be published. Required fields are marked *