I have a rough idea that by using jquery I can hide certain html divs. There is a shared layout for the nav bar for all pages but I don't want it showing in the initial signing in page only after they pressed submit and its valid should the navbar show
I tried within my signin page to call on the document and then calling hide on the object with that class.
This is my NavBar definition which is just came with the project
<nav 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="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">HomeRepair</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
I added this script tag at the bottom of the signing in view
<script> $(document).ready(function () { $("navbar navbar-inverse navbar-fixed-top").hide() });
</script>
Once I rebuilt the project the nav bar wasn't hidden