I seem to be having a problem controlling the visibility of a RadMenuItem using inline code. I have an "Admins Only" dropdown I want to display only if a session variable test is true. I swear this used to work, but as of 2010Q3 it is not. The sample line is:
The page loads up fine, but no matter the content of the session variable (empty, "1", "2", nothing), the menu is always displayed.
Any suggestions?
<
telerik:RadMenuItem
runat
=
"server"
Text
=
"Admin"
Visible='<%# iif(session("UserID") = "1", "True", "False") %>'>
The page loads up fine, but no matter the content of the session variable (empty, "1", "2", nothing), the menu is always displayed.
Any suggestions?