Click here to Skip to main content
12,304,228 members (69,773 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Samples » Downloads


52 bookmarked

A very standard, powerful and easy to use Sample and Library for working on RSS 2.0

, 18 Feb 2005 MIT
With this library, you can easily create some RSS 2.0 files for your site and/or use some RSS 2.0 files from other sites into your site.
namespace working_on_rss
	public class create_rss2_sample1 : System.Web.UI.Page
		#region Web Form Designer generated code
		override protected void OnInit(System.EventArgs e)

		private void InitializeComponent()
			this.Load += new System.EventHandler(this.Page_Load);

		private void Page_Load(object sender, System.EventArgs e)
			IranianExperts.RSS.RSSChannel oRSSChannel = new IranianExperts.RSS.RSSChannel("Channel Title", "Channel Link", "Channel Description");
			oRSSChannel.PubDate = System.DateTime.Now.ToString();

			IranianExperts.RSS.RSSRoot oRSSRoot = new IranianExperts.RSS.RSSRoot(oRSSChannel, Response.OutputStream);

			IranianExperts.RSS.RSSItem oRSSItem = null;

			oRSSItem = new IranianExperts.RSS.RSSItem("Item 1", "");
			oRSSItem.PubDate = System.DateTime.Now.ToString();

			oRSSRoot.Items.Add("Item 2");

			oRSSRoot.Items.Add("Item 3", "");

			Response.ContentEncoding = System.Text.Encoding.UTF8;
			Response.ContentType = "text/xml";

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The MIT License


About the Author

Dariush Tasdighi
Web Developer Sematec Ins.
Iran (Islamic Republic of) Iran (Islamic Republic of)
My experiences are:

HTML 5.0, CSS 3.0
JQuery, Angular JS, Bootstrap

MVC 5.0, WEB API, c#

My Site URLs:

My Yahoo Group URL:

Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160530.1 | Last Updated 18 Feb 2005
Article Copyright 2005 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid