title: Bootstrap navbar toggle button not working asp.net
body: <p>The toggle button does not work when the window is collapsed. I do not know which part is wrong.</p>
  
  <p>I can not tell if JQuery is not running or whether it is a different problem.</p>
  
  <pre><code>&lt;link href="~/CSS/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;link href="~/CSS/starter-template.css" rel="stylesheet"&gt;
  &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt;
  &lt;/asp:ContentPlaceHolder&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
      &lt;nav class="navbar navbar-inverse navbar-fixed-top"&gt;
          &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".ttnavbar" aria-expanded="false" aria-controls="navbar"&gt;
              &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class="navbar-brand" href="/Default.aspx"&gt;AS HOME&lt;/a&gt;
          &lt;/div&gt;
          &lt;div id="navbar" class="collapse navbar-collapse ttnavbar"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="active"&gt;&lt;a href="/Default.aspx"&gt;HOME&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#about"&gt;aa&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#contact"&gt;bb&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
          &lt;/div&gt;
  &lt;/nav&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div&gt;
      &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&gt;
      &lt;/asp:ContentPlaceHolder&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>