Article ID: 2060083 - Last Review: September 28, 2010 - Revision: 2.0 How to create an RSS Feed in ASP.NET
On This PageINTRODUCTIONThis article describes an All-In-One Code Framework sample that is available for download. This code sample demonstrates how to create a RSS Feed in ASP.NET. Before you go through this sample, we assume that you are familiar with RSS, including its usage, format, and so on. If not, refer to the RSS Tutorial Web site in the "References" section of this article. It describes what RSS is and the basic format of a standard RSS file. Note The code sample that is described in this article is not intended to be used in a production environment. It is provided only for illustration. This code sample is released under the terms of the Microsoft Public License (MS-PL). Difficulty levelCollapse this image ![]() Download informationTo download this code sample, click the following link:Technical overviewThe sample provides two pages: AddArticle.aspx and Rss.aspx.The AddArticle.aspx page supports a feature of updating the database via a simple FormView control. You can insert, edit and delete a record by using this FormView control when you are operating some articles. The Rss.aspx page can give the users who subscribe the RSS Feed the latest status of these records in the data table. To achieve the Rss.aspx page, you first need to import the XML namespace and change the page's ContentTpye to XML as the RSS file is an XML file other than a normal web page. In the WriteRssOpening() method, you need to set the version, the title, the simple description and some other information of this RSS Feed according to the RSS’s definition. NoteFor more information about how to create the sample application and how to deploy the sample application, see the Readme.txt file that is included in the download package. Technology category
LanguagesThis code sample contains the following programming languages:Collapse this table
Prerequisites
MORE INFORMATIONWhat is All-In-One Code Framework?All-In-One Code Framework shows most Microsoft development techniques by using code samples in different programming languages. Each example is carefully selected, composed, and documented to show one common code scenario. For more information about All-In-One Code Framework, visit the following Web site:http://1code.codeplex.com (http://1code.codeplex.com) How to find more All-In-One Code Framework samplesTo find more All-In-One Code Framework samples, you can simply click the following link:http://support.microsoft.com/gp/gp_kbcodefx (http://support.microsoft.com/gp/gp_kbcodefx) REFERENCESFor more information, visit the following Web sites: XmlTextWriter Class (http://msdn.microsoft.com/en-us/library/system.xml.xmltextwriter.aspx) RSS Tutorial (http://www.mnot.net/rss/tutorial) Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top



