1
I’m doing a project of CRUD
in ASP NET MVC in the part of editing the information the team code is being pulled from the bank and is appearing in the @EditorFor
and would like to make it so that it could not be edited. as if it were a readonly
of html
Follow the field code:
@Html.EditorFor(model => model.cd_time, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.cd_time, "", new { @class = "text-danger" })
I got it! Thank you!
– user215274
If it is useful to tick as an answer to your question @Beatricebenetti
– novic