How to avoid Adding runat=“server” destroying my server tags <%…%>
问题 Adding runat="server" is not rendering my server tags <%...%> I have a masterpage with a few <li> for menu and since I have to set class=selected for the current page, I am using a little server tag to find the url and assign the particular class. I have total of 10 <li> and not all menu is available to all types of user, I need to toggle few of the <li> if the user is not admin, so I have runat="server" added to them so I can set their visible=false through c# Here is how it is at a glance: