GibboK GibboK - 22 days ago 10
ASP.NET (C#) Question

How to generate RSS using Asp.Net

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.

My questions:



Thanks

Answer

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