0

I need to display the image link using an If, the false part of the if works, but the true doesn't, which is a variable imageFileLink. If i do a response.write in the variable imageFileLink it shows its content, but when I load the page with the variable in the if, it doesn't...

<asp:Image ID="Image1" runat="server" ImageUrl='<%# If (Eval("recImage") is DBNull.Value, String.Format("{0}", imageFileLink), String.Format("data:image/jpg;base64,{0}", Encoding.UTF8.GetString(Eval("recImage"))))%>' />
1
Contributor
1
Reply
6
Views
4 Years
Discussion Span
Last Post by thiemebr
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.