Select t.Id, t.Name, CASE WHEN Flag = true THEN '~/Images/true.png' ELSE '~/Images/false.png' END from Table t
<asp:image id="myImage" runat="server" imageurl="<%#SetImageUrl("DataBaseCondition")%>" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)