<div class="news-blog"> <h4> News and events<div class="news_scroll"> <asp:LinkButton ID="btnDown" runat="server" onclick="btnDown_Click"></asp:LinkButton> <asp:LinkButton ID="btnUp" runat="server" onclick="btnUp_Click"></asp:LinkButton> </div> </h4> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://www.gatesfoundation.org/FileReturn.aspx?returntype=rss&feed=all" XPath="rss/channel/item [position()<=3]"></asp:XmlDataSource> <asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1"> <ItemTemplate> <div class="news-events"> <table width="100%"> <tr> <td> <div class="news-content"> <h5> <asp:HyperLink ID="hypTitle" runat="server" Width="500px" Text='<%# XPath("title") %>' Target="_self" NavigateUrl='<%#XPath("link")%>'></asp:HyperLink> </h5> </div><br /> <p> <asp:Label ID="Label1" runat="server" Text='<%# XPath("description") %>' Style="float: right"></asp:Label> </p> </td> </tr> </table> <br /> </div> </ItemTemplate> </asp:DataList>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)