I want to view dropdown in the shared page
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.DropDownListFor()</li>
</ul>
</div>
this above file name is _Layout.cshtml
.
I have a table in my database named headings
. in this table column as helps
.
I want to add a button "Helps" along with "Home", "Contact", and "About". Such that when we click on "Helps" it shows a dropdown with all the values stored in the table headings in "helps" column.
How should I do it.