0
Utilise select
and it comes filled from the bank:
<select asp-for="CategoriaID" asp-items="@Model.CountryList" id="cbcategoria" class="form-control">
</select>
And here’s how it’s in the controller:
model.CountryList = new SelectList(countries, "Id", "Value");
Would you like to know how I can leave select without filling in when entering a new record? The field is required in Viewmodel.