1
Reply

How do I turn visibilty on and off for a li in my site maste

rick

rick

Dec 30 2017 2:20 PM
136

 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>


Answers (1)