Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

need to show roll up image from sharepoint list

$
0
0

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



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>