I'm looking to make a user control to display the 3 most recent posts from a blog on my home page. I've googled around a bit and found a few ways to do this, but none I'm quite satisfied with.
I looked at the XMLDataSource control, but I'm concerned about exception handling. If the remote feed fails, I want to just hide the usercontrol and let the rest of the page display as normal. There seems to be no clean, declarative way to handle this. An OnError event would be nice, especially if it had an e.ExceptionHandled property on the EventArgs object like some of the other DataSource classes.
Scott Guthrie blogged about an RSS Toolkit for .net 2, but that was four years ago and hasn't been updated.
I'm leaning towards Linq to XML, which would probably work fine, but I can't help thinking that there must be a simpler approach to reed RSS feeds since it's such a common problem.
View Complete Post