c# - BootStrap not formatting view in MVC 4 -
i have mvc 5 application created bootstrap. had create mvc 4 application , copied _layout.cshtml file on , made modifications needed. i, further, added bootstrap project. however, menu bar not showing up. pic:
this kind of expecting. (this pic of app copied code from):
here _layout file:
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@viewbag.title</title> @styles.render("~/content/css") @scripts.render("~/bundles/modernizr") </head> <body> <div id="wrapper"> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> @*<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>*@ </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li>@html.actionlink("interactive courses", "index", "pteinteractivecourse")</li> <li>@html.actionlink("tracking classes", "index", "ptetrackingclass")</li> </ul> </div> </div> </div> <div class="container body-content"> @renderbody() <hr /> <footer> <p>© @datetime.now.year.tostring() securities training corporation. rights reserved.</p> </footer> </div> </div> @scripts.render("~/bundles/jquery") @scripts.render("~/bundles/bootstrap") @rendersection("scripts", required: false) </body> </html>
Comments
Post a Comment