ASP.NET 2.0
As much as I try, I can't seem to bind the Visible property to data item property:
<asp:Panel runat="server" Visible="<%#(bool)Eval("IsBoolean")%>">X</asp:Panel>
I always get this error:
Cannot create an object of type 'System.Boolean' from its string representation '"<%#(bool)Eval("IsBoolean")%' for the 'Visible' property.
But this works:
<asp:Panel runat="server" Visible="<% true %>">X</asp:Panel>
What am I doing wrong? I mean, besides using ASP.NET 2.0?