I want to attribute a type and name to a @Html.LabelFor
Is my syntax correct please, thank you!
Is my syntax correct please, thank you!
HTML:
<div class="row">
<div class="col-2">
@Html.LabelFor(m => m.ModelName)
<input type="text" id="ModelName" name="ModelName">
</div>
Last edited by a moderator: