The HTML tag <input> works fine and displays the data inside of it, but when I am using <textarea> it doesn't work and it probably does not work with asp-for but I'm still forced to use asp-for because I'm using .NET Core to build the web-page.
This is the output code that is malfunctioning (.cshtml)
@foreach (ComplaintManagement.Context.notesData note in ViewBag.getID)
{
<label>Subject</label>
<input required="required" class="form-control" asp-for="subject" value="@note.subject" />
<label>Summary</label>
<textarea class="form-control mb-2" asp-for="summary" rows="10">@note.summary</textarea>
}
If I failed to explain what I meant, hope the picture I attached helps...
If more information is needed, please ask in the comment section.