Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display RSS FEED of other website to my site in asp.net?

I want to display RSS FEED of other website in my site made in ASP.NET. what should i do?

like image 386
bhargav Avatar asked Jun 10 '11 09:06

bhargav


People also ask

How do you get RSS feed from any website?

Add “/feed/” to the end of the website URL. and when we enter this in a browser it shows us an RSS feed.

How do I embed an RSS feed into my website?

Go to the website, list, or library where you want to receive the RSS feed from. . The RSS feed appears in the browser. Right-click the Subscribe to this feed link, and then select Copy Shortcut.

Can I show RSS feeds on my website?

Yes, you can use RSS Feeds on your website. It is absolutely free and effortlessly easy to do so. All you need is an RSS Feed URL and a free RSS Widget powered by Tagembed.

How do I display an RSS feed in my browser?

Click the RSS icon in the Address Bar and the browser window will change to display as a series of single-line RSS feeds.


1 Answers

<asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1">
    <ItemTemplate>
        Title: <a href="<%# XPath("link") %>"><%# XPath("title") %></a><br />
        Pulish Date: <%# XPath("pubDate") %><br />
        Description: <%# XPath("description") %>
        <hr />
    </ItemTemplate>
</asp:DataList>

<asp:XmlDataSource ID="XmlDataSource1" Runat="server"
        DataFile="http://z.about.com/6/g/electrical/b/rss2.xml"
        XPath="rss/channel/item">
</asp:XmlDataSource>
like image 64
Saurabh Avatar answered Sep 23 '22 11:09

Saurabh