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 .

Hello mubarka,

If you want to build an RSS feed via ASP.NET, I have sample code that you can freely use and adapt to your needs. The code is written in vb.net, but if you need it for c#, its easy to translate.

Hope this helps.

Create an RSS Feed for your Website

Actual example that I incorporated on my site:
http://www.itgeared.com/rss/

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

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()

thank you very much ill try it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.