I have DropDownList
in my View
and despite having class form-control
the list does not have the style of Bootstrap
.
How can I edit how DropDownList
builds lists?
@Html.DropDownList("countriesDiretorySelect",
new SelectList(ViewBag.Countries as System.Collections.IEnumerable,
"NumKeyId",
"VarResourceLevelName"),
new { id = "countriesDiretorySelect", @class = "form-control " })
Since I have the whole site based on Bootstrap
, I do not want to miss this element. I have the project in MVC4
.