开发者

How to generate RSS using Asp.Net

开发者 https://www.devze.com 2023-03-31 23:04 出处:网络
I use Asp.net Web Forms and C# 4. I have content in DataBase table and I would like publish it as RSS for my website开发者_如何学JAVA.

I use Asp.net Web Forms and C# 4.

I have content in DataBase table and I would like publish it as RSS for my website开发者_如何学JAVA.

My questions:

  • Does Asp.Net framework provide a namespace or tool to automatically doing it?
  • In case no, could you point me out a good tutorial or tool?
  • I read the article: http://weblogs.asp.net/scottgu/archive/2006/02/22/Awesome-ASP.NET-2.0-RSS-Tool_2D00_Kit-Released.aspx this tool is for Asp.Net 2.0 could be used nowadays or is out of date?

Thanks


Don't do it by hand - use the built-in System.ServiceModel.Syndication classes to generate the feed for you. Then you know it's compliant with whichever format (RSS or ATOM) you generate.

Here's an article that walks you through it:

[How to create a syndication feed for your website][1]

[1]: http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx [NOT WORKING]


Well, MSDN has a relatively-straightforward tutorial on how to generate RSS 2.0 from ASP.NET, found at http://msdn.microsoft.com/en-us/library/aa478968.aspx. It's really not terribly hard, so I would recommend doing it if you're wanting to learn something.


You can found this tool very useful

Creating SQL Based RSS Feed [DEAD LINK]

0

精彩评论

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