user1480864
user1480864

Reputation: 1585

RSS Feed in asp.net

I have to develop RSS Feed in asp.net. Events will be logged as text along with the more set of fields. This table will be published as an RSS feed to be loaded in Outlook. I have no idea how to develop this though I have few queries:

  1. My understanding after reading on RSS Feed is that it has to be in specific format. Is it?
  2. I have to generate different types of messages. Do I need to create different-different RSS feed?
  3. How RSS feed will be loaded in Outlook? I know user need to configure it in outlook though How will it load new event in outlook automatically?

Thanks

Upvotes: 0

Views: 1090

Answers (1)

DroidSK
DroidSK

Reputation: 71

You can generate rss feeds using SyndicationFeed class in dotnet. It is available in the system.Servicemodel.Syndication namespace. Look up on msdn for syndication feed and you find a sample for generating both rss 2.0 and atom 1.0 feeds. To answer your questions: 1. Yes feeds need to be in rss or atom formats. Dotnet supports feed generation in both atom and rss. You essentially pick the formatter you want and serialize the object that contains the data for the feed. 2. Typically there is one feed which contains several feed items. Example: google news has an rss feed. This is a single feed and each news item is a feed item. 3. Outlook 2007 has an entry for rss feeds in inbox. Right-click gives you an option to add a new feed where you will enter the url for the feed. Since you are new to rss i suggest you load certain rss feeds in a browser. In the browser view tge source of the page and you will see the xml containing the feed. Hope this helps.

Upvotes: 1

Related Questions