0

Hi all.

I need to make web site work as RSS feeder,
but I dont know how to do that and wich dll should i use.
I'm asking you to give some usful links and articles .

Edited by pritaeas: Removed caps.

3
Contributors
5
Replies
7
Views
4 Years
Discussion Span
Last Post by mubarka
0

thank you gorgeM
but what actually i need is
read others rss feeds and display it in my home page

0

If you want to display the RSS feed from another site on your site, you could use an XmlDataSource control with some datalist controls. some example code in vb. I dont have a working example to show you. However, i have used this code before. You may just need to tweak it.

Example of what you may have in your aspx page...

<asp:DataList ID="dlListMain" runat="server" RepeatLayout="Flow" DataSourceID="XmlDataSource1" >
        <ItemTemplate>
            <h1><%#XPath("/rss/channel/title")%></h1>
            <asp:Label ID="lblThreadDate" runat="server" Text='<%#DateTime.Parse(XPath("/rss/channel/item/pubDate").ToString()).ToString("D")%>'></asp:Label>
              <br /><br /><br />
                <asp:DataList ID="dlListSub" runat="server" DataSource='<%# XPathSelect("/rss/channel/item") %>' RepeatLayout="Flow">
                    <ItemTemplate>     
                        <div>
                        <%#DateTime.Parse(XPath("pubDate").ToString()).ToString("r")%>
                          <br /><br />
                        <%#XPath("description")%>
                          <br /><br />
                        </div>
                    </ItemTemplate>
                    <AlternatingItemStyle />
                    <ItemStyle/>
                </asp:DataList>
                <br />
        </ItemTemplate>   
    </asp:DataList>

Example of what you may need to include in your page load sub...

    XmlDataSource1.DataFile = feedURL
    XmlDataSource1.DataBind()
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.