0
How do I enter @class = "form-control" in the code below?
<div class="form-group">
<label for="disabledSelect" class="control-label col-md-2">Status:</label>
<div class="col-md-10">
@Html.DropDownListFor(s => s.Status, new List<SelectListItem>
{
new SelectListItem { Value = "Ativo", Text = "Ativo" },
new SelectListItem { Value = "Inativo", Text = "Inativo" },
}, @Model.Status, @Model.Status)
</div>
</div>
Because the
@Model.Status
repeat twice at the end?– Barbetta