Hi,
I'm trying to hide a user control on a webpartpage depending on a value in my dataset. I'm using the following for the Visible property of my control:
Visible
='<%#(Eval("MyFieldName")="0" ? false:true)%>'
I then save my control and no errors are generated, however when I run in in SharePoint I get (debug is on):
System.Web.HttpCompileException: c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\ep\MH_EPVPPaymInfo.ascx(11): error CS0029: Cannot implicitly convert type 'string' to 'bool'
Your help is greatly appreciated.
*This post is locked for comments
I have the same question (0)