2
The menu dropdown
apparently it works on the main page, but when I’m on another page and I’m going to use it it doesn’t work! I already checked if the HTML code is generating with jQuery and I saw nothing strange. What to do?
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">sis</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Cadastros<b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
<li><a href="PessoasFisica/frmConPessoaFisica.aspx">Consulta de Pessoa Fisica</a></li>
</ul>
</div>
</div>
</nav>
<script src="Scripts/jquery-2.1.4.js"></script>
<script src="Scripts/jquery-2.1.4.min.js"></script>
<script src="Scripts/bootstrap.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script> $(document).ready(function () { $('.dropdown-toggle').dropdown(); }); </script>
</body>
There are some errors in your code, some tags are missing, and the
bootstrap.min.css
. And you don’t have to put thebootstrap.js
and thebootstrap.min.js
(only the.min.js
is enough, the same thing with jQuery). This menu is supposed to be three levels? Menu type>registration>physical person query (3 levels) or the menu appears next to it, and the physical person query is within Registration (2 levels)? Take a look at whether this is more or less what you need: http://jsfiddle.net/chirayu45/yxkut/16/– gustavox
There is no level. As for bootstrap.min.css it is in the Masterpage header. The problem is that when I am for example in the Query form, Dropdownmenu does not work. The URL looks like this: http://localhost:1078/Personal#
– Germano Sampaio
I think the @dHEKU response will do the trick. Look at the example he posted on Bootply, and if that solves your problem, don’t forget to accept his answer (this is how we thank you here ;)).
– gustavox
My bootstrap only works on the first page, so it’s no use if I put my code on http://www.bootply.com/Y60uWy24UY, as it will only show the bootstrap working normally. My problem is in the ASP.NET URL that is not changing when I am on another page.
– Germano Sampaio