sodakotahusker
Programmer
- Mar 15, 2001
- 601
I am trying to set the visible property of an image using the Databinder.Eval. I tried returning a false or true string and a 0 and -1 numbers but I get the same error on the statement. Can I even do this. I only have picture in certain records so I hate showing the missing image icon.
<asp:Image runat=server ImageUrl = <%#DataBinder.Eval(Container.DataItem,"imagefile")%> visible=<%#DataBinder.Eval(Container.DataItem,"showimage")%> /> </td>
<asp:Image runat=server ImageUrl = <%#DataBinder.Eval(Container.DataItem,"imagefile")%> visible=<%#DataBinder.Eval(Container.DataItem,"showimage")%> /> </td>