I\'ve just updated my Visual Studio 2017 ASP.NET MVC 5 application from Bootstrap v3 to v4. I\'m finding when I add a new edit partial view using scaffolding, it is still us
To fix/update the ASP .NET MVC 5 project navbar to Bootstrap 4 you have to update your code manually as follows:
Then if you don’t use the Login partial, you can remove it. Otherwise, change the _LoginPartial.cshtml to:
@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
{
@Html.AntiForgeryToken()
}
}
else
{
}
And last just remove the next lines from Content/Site.css:
/*delete this*/
body {
padding-top: 50px;
padding-bottom: 20px;
}