Show image according to value from database

I want to show image in following ListView control according to value from database.

For example:
If value = 1 than show “edit.gif” else show “details.gif”

    <asp:ListView ID="ListView1" runat="server" EnableViewState="False">
                <td align="center"><asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/edit.gif" /></td>

You should be able to do something like this:

<% RepeaterItem.DataItem[“column”] == “1” ? “edit.gif” : “details.gif” %> in the ImageUrl attribute