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”


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

You should be able to do something like this:

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