One of my projects this year was re-designing this very site, andrewlong.com. I wanted to make the site a blog-type site, but didn’t want to install 3rd party blog software or write my own blog system. Well, since I already had a Windows Live Spaces site setup, and the Spaces team has done a great job of exposing all of a Spaces site’s content via RSS, I decided to whip up a .Net class library to make it a little easier to consume the Spaces RSS feeds. The library includes all the functionality that I used to setup the front page of this site, as well as the categories, archive, and photo album functionality on this site. The library also includes support for caching the RSS Feeds, and I’ve included a .chm file in the download.
Sample Code to retrieve a blog feed and bind the RSSItems to a GridView:
SpacesRssHelper.RSSFeed rssFeed = SpacesRssHelper.RSSFeed.GetFeed( WebConfigurationManager.AppSettings["SpacesName"], SpacesRssHelper.Enums.FeedType.Blog, 6); GridView.DataSource = rssFeed.RSSItems; GridView.DataBind();