I am trying to set the visibility of an asp.net tag to false, based on a condition, using IIF. The statement is always evaluating to true.
Visible='<%# IIF (1=2,false,true) %>'
The above code, when placed in a tag, is still visible even though the condition is clearly false. The complete tag is:
<asp:HyperLink ID="HyperLink1" runat="server" Text="[more]" NavigateUrl="~/exhibits/chilling_out/en/more.aspx" Visible='<%# IIF (1=2,false,true) %>' />
What am I doing wrong?