I am trying to apply bootstrap style(same as the one given here) to a dropdown. I am using razor syntax to display the dropdown. The items of the dropdown are coming from another .cs file.
I have followed some of the posts here in SO, but still not getting the right way to do it.
It is just getting displayed as a plan dropdown without any bootstrap style applied.
<div class="col-md-2 col-lg-2">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
@Html.DropDownListFor(m => m.Menu, new SelectList(Dropdown.DDMenu(), "Value", "Text"), new { @class = "form-control" })
</button>
</div>
The dropdown menu is not displayed when I add the <button></button> but when I remove it, it works.