Hi everyone,
I need a little help about programming. I have written codes that get texts from sharepoint 2013 custom list. It is working. but there is also roll up image in the list. I don't know how to display roll up image from the list.
my codes are the followings:
in ascx file
<asp:Repeater runat="server" ID="rptNews">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("Link") %>' Text='<%# Eval("Title") %>' runat="server" />
<br />
<asp:Literal ID="ltrDescription" Text='<%# Eval("Description") %>' runat="server" />
<br />
</ItemTemplate>
</asp:Repeater>
in cs file
string title = item["Title"].ToString();string description = item["Description"].ToString();
string link = string.Concat(item.Web.Url, "/", item.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url,"?id=", item.ID.ToString());
newsList.Add(new News() { Title = title, Description = description, Link = link });
I used newsList as datasource for repeater.
which codes I have to use to get image from list?
Please help!
thanks