So I noticed that any html inside the auto-generated [Code here] from making a new web form from master can be changed in the form that is created from the master.
I have a header made in an ul and each element is an li. I want the li of the page selected to become li class-"active" when its on the selected page.
Since the point of the master is that all the other forms you make inherit the properties from it, putting a header inside the [Code here] makes it non existent when I make a new form.
My question is this: Is there a way to make the li become li class-"active" without having to override all of the code for the header by putting it inside the and copy and pasting my header code but changing just one li.
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<div class="bodyGradient">
<header class="navbar navbar-inverse navbar-static-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 navbar-left">
<li>
<a href="/Home.aspx">{Someone's Domain}</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="/Home.aspx">Home</a>
</li>
<li>
<a href="/">About</a>
</li>
<li>
<a href="/">Portfolio</a>
</li>
<li>
<a href="/">CryptoGame</a>
</li>
<li>
<a href="/">Photos</a>
</li>
<li>
<a href="/">Contact</a>
</li>
</ul>
</div>
</div>
</header>
</div>
</asp:ContentPlaceHolder>
</div>
</form>