Display images from server in listview
Posted
by
user1451610
on Stack Overflow
See other posts from Stack Overflow
or by user1451610
Published on 2012-10-16T04:59:21Z
Indexed on
2012/10/16
5:00 UTC
Read the original article
Hit count: 103
My images are stored in a folder "Albums" and address for those images are "/Albums/..". i want to concatenate two strings in imageurl but its not working and listview is not displaying images:here is my code:
<asp:ListView runat="server" ID="listView"
OnItemDataBound="ContactsListView_ItemDataBound">
<ItemTemplate>
<asp:Image ID="img" ImageUrl= '<%# String.Concat("/", Eval("PictureLink")) %>' runat="server" />
</ItemTemplate>
</asp:ListView>
any help?
© Stack Overflow or respective owner