How to display a News Feed on my web site

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Mike,

Thank you for your post.

The simplest way to display rss feeds on your ASP.NET website is using the
new Data Source control XmlDataSource, for example:

<asp:XmlDataSource id="XmlDataSource1" DataFile="msdn.xml"
XPath="rss/channel/item" runat="server" />

<asp:DataList id="DataList1" runat="server" DataSourceId="XmlDataSource1">
<ItemTemplate>
<b><%# XPath("pubDate") %> - <%# XPath("title") %> </b>
<br/>
<%# XPath("description") %>
</ItemTemplate>
</asp:DataList>

Also, you may take a look at following article which describes how to
create a User Control to display rss feeds:

#Coding4Fun: A Simple RSS Feed
http://msdn.microsoft.com/coding4fun/xmlforfun/simplerss/default.aspx

Hope this helps. If anything is unclear, please feel free to post here.


Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Mike,

I'm glad that helped.

Have a nice day!


Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top