My site.master contains the the below listed code. I need to turn id "MaintenenceLink" on or off based roles. Not sure how to go about this. tried several versions of FindControl without success. Doesn't give me an error just doesn't work.
<AnonymousTemplate>
<ul class="nav navbar-nav navbar-right" id="navcontrol" runat="server" visible="false">
<li id="MaintenenceLink" runat="server">
<a runat="server" id="update" visible="false" href="~/Account/Maintenence">Maintenence</a>
</li>
<li><a runat="server" href="~/Account/Register">Register</a></li>
<li><a runat="server" href="~/Account/Login">Log in</a></li>
</ul>
</AnonymousTemplate>