Providing Content as an RSS Feed
We will create a mechanism that will allow users to point their RSS aggregator to a page and retrieve the postings that have been updated within a set number of days. An RSS aggregator is a program that can retrieve items from one or more RSS feeds and display the items in a readable form.
Creating the RSS Feed
For the purposes of this example, we will create a new web form in the Tropical Green sample site.
Let’s jump right into the code:
1. Launch the Tropical Green solution in Visual Studio .NET.
2. Create a new folder to store our RSS web form by right-clicking on the TropicalGreen project and selecting Add | New Folder. Name the new folder
UtilityPages
.3. Create a new web form in the
UtilityPages
folder by right-clicking onUtilityPages
and selecting Add | Add New Web Form.4. Name the item
rss.aspx
and click Open.5. We should now have a blank web form created and opened in Design view.
The web form we are creating will return XML and not HTML...