[英]How to generate RSS using Asp.Net
I use Asp.net Web Forms and C# 4. 我使用Asp.net Web Forms和C#4。
I have content in DataBase table and I would like publish it as RSS for my website. 我在DataBase表中有内容,我想将它作为RSS发布到我的网站。
My questions: 我的问题:
Thanks 谢谢
Don't do it by hand - use the built-in System.ServiceModel.Syndication classes to generate the feed for you. 不要手动执行 - 使用内置的System.ServiceModel.Syndication类为您生成源。 Then you know it's compliant with whichever format (RSS or ATOM) you generate. 然后你知道它符合你生成的任何格式(RSS或ATOM)。
Here's an article that walks you through it: 这是一篇引导您完成它的文章:
[How to create a syndication feed for your website][1] [如何为您的网站创建联合供稿] [1]
[1]: http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx [NOT WORKING] [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 . 好吧,MSDN有一个关于如何从ASP.NET生成RSS 2.0的相对简单的教程,可以在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] 创建基于SQL的RSS源 [DEAD LINK]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.