ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,564 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do we make a dropdown hidden in MVC CORE
For example I want make the Status dropdown hidden
<div class="form-group">
<label asp-for="Statusid" class="control-label"></label>
<select asp-for="Statusid" class="form-control" asp-items="ViewBag.Statusid"></select>
<span asp-validation-for="Statusid" class="text-danger"></span>
</div>
Just replace the code with:
<input type=“hidden” select asp-for="Statusid" />