Simple RSS Reader in ASP.NET
What you see more and more is basic websites integrating a their blog (usually contained on a subdomain blog.yoursite.com) into their websites.
What can seem like an easy task though of pulling in RSS feeds can actually get fairly messy. However a lovely chap called Dmitry Robsman created an RSS datasource control that you can use to bind RSS feed data to controls in ASP.NET.
Import the custom control into Visual Web Developer, specify a rss link source and then use maybe a datalist control? Whatever you want. ;)
<asp:DataList ID=”DataList1” runat=”server” DataSourceID=”RssDataSource1”>
<ItemTemplate>
<asp:HyperLink runat=”server” NavigateUrl=’<%# Eval(“link”) %>’ Text=’<%# Eval(“title”) %>’></asp:HyperLink>
</ItemTemplate>
</asp:DataList>
<cc1:RssDataSource ID=”RssDataSource1” runat=”server” MaxItems=”0” Url=”http://blog.quoteme.ie/feed/”></cc1:RssDataSource>
If you have a look at the feeds you will see common elements for each post like title, link, comments, pubDate, creator, category, description and content. All fairly self explanatory.
Resource: http://weblogs.asp.net/scottgu
