开发者

RSS management in MVC3 applications

My question is mainly inspired by the issues raised in response to RSS Feeds in ASP.NET MVC - a question that looks like it's drawn more than average amount to attention (ranks high in google's "RSS feeds from asp.net MVC" return. Because 2 d开发者_StackOverflow中文版istinctly different approaches have been voted up I'm hoping folks will find it worthwhile to re-examime the core question: What's the best way to handle the management of RSS feed in an MVC framework.

In the time since that question was asked:

  1. Have the releases of .net v4 and/or MVC3;
  2. Experience acquired in the real world; or
  3. 3rd party libs

changed a 'best practices' approach to handling RSS feeds?


steve, the response on the linked post by Eran Kampf is, imo, the real 'best practice'. It's clean, concise, portable, and ensures that you follow the RSS feed format standards.


In short I don't know of any additions to the framework that enable this out of the box.

Someone else might have a better answer but I would do something like this -> Good post about creating an rss feed.

But that article is from Jan 2009.

This post from Oct 2009 shows you how to create an RssResult inheriting from ActionResult -> http://www.wduffy.co.uk/blog/rssresult-aspnet-mvc-rss-actionresult/

The second link is probably the nicer way to do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜