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"))))%>' />

anybody ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.