Ramco Ramco

Ramco Ramco

  • 437
  • 3.4k
  • 548.2k

Image through Code Behind in a Repeater

Jun 17 2023 1:46 AM

Hi

  I have below code & i want to display image using Code behind

<asp:Repeater ID="rptData" runat="server" OnItemDataBound="rptData_ItemDataBound">
    <ItemTemplate>
        <tr>
            <td>
                <asp:Literal ID="ltrlSessionEndTime" runat="server" Text='<%# Eval("SessionEndTime","{0: HH:mm}") %>'></asp:Literal></td>
            <td>
                <a '>
                    <asp:Literal ID="ltrlBookTitle" runat="server" Text='<%# Eval("BookTitle") %>'></asp:Literal>
                </a>
            </td>
            <td class="text-center">
                <img style='height: 65px;' src='<%# Eval("ThumbImage") %>' /></td>
        </tr>
    </ItemTemplate>
</asp:Repeater>

Thanks


Answers (3)