Author: danielfabiani | Posted on: 9/21/2010 3:48:55 PM | Views : 620

Hi,
I've got a custom menu in the master page, that hides items according to different conditions (nothing to do with roles and perms). Is in the MasterPage.master file where i'm trying to hide them, e.g.:
<li runat="server" visible='<%# (isNormalMode()) %>'><a href="~/Config.aspx" runat="server" id="href0"><span id="span0" runat="server">Config</span></a></li>

The function isNormalMode() is defined in the code behind file MasterPage.master.cs, and everything is working properly in the page Default.aspx, but in the rest of the pages it doesn't execute the function at any time, so the item always remain visible.
Any idea?
Thanks in advance,


Daniel



...

Go to the complete details ...