I have an ASP.NET Core MVC form with few controls as required. I have added required attribute in th element. It is not going to next page if there is no data for the control but I am unable to add validation message "Please provide data for required field".
How can I add that?
<div class="col-xs-12">
@Html.TextAreaFor(m => Model.StudentName, new { @class = "form-control", required = "required" })
</div>
UI

HTML does it like this.