- Download RSS Toolkit from CodePlex: http://www.codeplex.com/ASPNETRSSToolkit
- Identify the data about me that I want to mix into one place.
- Make a list of the RSS feeds that are available for that data.
- Setup a simple Yahoo Pipe that unions all of my RSS feeds of interest into one RSS feed.
- Get the single RSS feed and pump it into an RSSDataSource.
- Bind that RssDataSource to a simple ASP.Net Repeater.
- Setup the RSS Toolkit Caching using the application settings suggested here.
- Revamp website design using templates from the Open Source Web Design templates library.
- Remove old administration code used for Blogger, Flickr and Youtube.
- Publish, and see results of Ben Powell's new website.
And, now for some code:
1: <%@ OutputCache Duration="86400" VaryByParam="None" %>
2: <%@ Register Assembly="RssToolkit" Namespace="RssToolkit.Web.WebControls" TagPrefix="cc1" %>
3: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="RssDataSource1">
4: <ItemTemplate>
5: <h2><%# Eval("title") %></h2> 6: <%# Eval("description") %> 7: <br />
8: <a href='<%# Eval("link") %>'>Link</a> 9: </ItemTemplate>
10: </asp:Repeater>
11: <cc1:RssDataSource id="RssDataSource1" runat="server" url="http://pipes.yahoo.com/pipes/pipe.run?_id=_<your pipe id>&_render=rss" MaxItems="10"></cc1:RssDataSource>
0 comments:
Post a Comment