How can I pass string value for “asp-for” in asp net 5
问题 I want to write a Edit.cshtml file for an entity with many properties to edit, so I have to write the following codes many times: <div class="form-group"> <label asp-for="Email" class="col-md-2 control-label"></label> <div class="col-md-10"> <input asp-for="Email" class="form-control" /> <span asp-validation-for="Email" class="text-danger"></span> </div> </div> Actually, there are many entities so that I have to write many Edit.cshtml files. I want to make some simplifications I want to