Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
cocKy
Posts
Comments
C
C#
•
Created by cocKy on 9/4/2024 in
#help
Default value to textarea in .net core MVC
<textarea asp-for="Description" class="form-control">@ViewBag.Product.Description</textarea>
<textarea asp-for="Description" class="form-control">@ViewBag.Product.Description</textarea>
Based on the example above, I want to add a default value to the textarea since it is a page for user to update the item.
3 replies