Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

asp .net core 3 mvc select with default value

<select asp-for="Category" asp-items="@ViewBag.Category"  class="form-control">
    <option disabled selected>--- SELECT ---</option>
</select>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #asp #core #mvc #select #default
ADD COMMENT
Topic
Name
1+1 =