I cannot get my Bootstrap drop down menu to work. By not working I mean, nothing happens when I click on the link, nothing drops down. I have created my nav bar in a masterpage. I have also spent half a day reading all of the posts on here and I cannot get it to work...
I am creating an application in VS2013 Pro and it is in ASP.NET/C# 4.0, I have tried it in Chrome, IE, Firefox etc. I have also swapped JQuery min with JQuery main, tried it at the top and bottom of the html. I have been through every permutation. I have also checked the inspector in each of the browsers and cannot see any errors. I have changed the code for the navbar from looking at the posts available and I am now at a dead end.
without it, the dropdown still works, try checking if you don't have a conflict in the page.
没有它,下拉列表仍然有效,请尝试检查页面中是否存在冲突。
#2
0
I never use
我从不使用
in fact, I tested your code without it and works perfect, you should look if you are making a good calling of the bootstrap js file, or maybe the version of jquery is not compatible
I still cannot find why the JS wont load, even having tested it. But for some reason I keep getting the following error, that is probably unrelated when building the App:
Warning 11 No way to resolve conflict between "Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" and "Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed". Choosing "Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" arbitrarily. The SumTechnology Project
To get around the issue I used CDN references for the JS elements for the page and this has fixed it. So it is a conflict in something that is preventing those particular JS files from running.