I have one ASP Menu in which it has some menu items. See below code:
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false"
Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Home.aspx" Text="Home"/>
<asp:MenuItem NavigateUrl="~/AboutUs.aspx" Text="About"/>
<asp:MenuItem NavigateUrl="~/Admin.aspx" Text="Admin"/>
<asp:MenuItem NavigateUrl="~/UserAccount.aspx" Text="User"/>
</Items>
</asp:Menu>
I want to hide or disable third menu item based on login session. I know how to handle session but I am not right with how to hide one asp:menu
item. I can't apply CSS to single Menu Item.
So lease tell me what to do.