title: How do I add a a dropdown menu in the default asp .net 3.1 razor template
body: <p>By default, when you create a page in asp .net core 3.1 (in Visual Studio of course) you get a base menus in _layout.cshtml:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;nav class=&quot;navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3&quot;&gt;
      &lt;div class=&quot;container&quot;&gt;
          &lt;a class=&quot;navbar-brand&quot; asp-area=&quot;&quot; asp-controller=&quot;Home&quot; asp-action=&quot;Index&quot;&gt;Axinco.JuryTool.Interface.Gui&lt;/a&gt;
          &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.navbar-collapse&quot; aria-controls=&quot;navbarSupportedContent&quot;
                  aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;
              &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt;
          &lt;/button&gt;
          &lt;div class=&quot;navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse&quot;&gt;
              &lt;partial name=&quot;_LoginPartial&quot;/&gt;
              &lt;ul class=&quot;navbar-nav flex-grow-1&quot;&gt;
                  &lt;li class=&quot;nav-item&quot;&gt;
                      &lt;a class=&quot;nav-link text-dark&quot; asp-area=&quot;&quot; asp-controller=&quot;Home&quot; asp-action=&quot;Index&quot;&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li class=&quot;nav-item&quot;&gt;
                      &lt;a class=&quot;nav-link text-dark&quot; asp-area=&quot;&quot; asp-controller=&quot;Home&quot; asp-action=&quot;Privacy&quot;&gt;Privacy&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  <p>This gives you the following layout:</p>
  <p><a href="https://i.stack.imgur.com/JJfRV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JJfRV.jpg" alt="Default webpage" /></a></p>
  <p>I added code to download extra menu settings based on the role. Basically, it's a menuheader (for example 'Adminisrator') and then a couple of menu items.</p>
  <p>So I want to add a down menu next to &quot;Privacy&quot;.</p>
  <p>How would I best do this?</p>