User2041008840 posted
In ASP.net Core
I set the validation in model
[Required]
public string Name {get;set;}
but in view
it show like this
After submit -
Shows error *Required field (error message)
span element show in red color but textbox does not highlighted in red color.
How do i make textbox border red color if there is error
<div class="form-group">
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>