Answers for "how to add option in html select in .net core"

1

select asp-items selecte one

@model MyViewModel
<form asp-controller="Home" asp-action="Create">

    <label>Comments</label>
    <input type="text" asp-for="Comments"/>

    <label>Lucky Employee</label>
    <select asp-for="EmployeeId" asp-items="@Model.Employees" >
        <option>Please select one</option>
    </select>

    <input type="submit"/>

</form>
Posted by: Guest on June-18-2020
-3

how to add option in html select in .net core

sdfsdfsdfsdfsdfsdf
Posted by: Guest on August-02-2021

Code answers related to "how to add option in html select in .net core"

Browse Popular Code Answers by Language