Geeks With Blogs

Lance's TextBox
There are a lot of quick and easy way to generate RSS in your applications, here is one way using the IP*Works! RSS component. This particular sample is in an ASP.Net app:

	nsoftware.IPWorks.Rss rss1 = new nsoftware.IPWorks.Rss();
	rss1.ChannelTitle = "My RSS";
	rss1.ChannelDescription = "How to generatete RSS";
	rss1.ChannelLink = "http://lance.geekswithblogs.net";
	rss1.AddItem("Title 1", "Description 1", "http://server/link1.aspx");
	rss1.AddItem("Title 2", "Description 2", "http://server/link2.aspx");
	rss1.AddItem("Title 3", "Description 3", "http://server/link3.aspx");	
	Response.Clear();
	Response.ContentType = "text/xml";
	Response.Write(rss1.RSSData);
	Response.End();

Posted on Monday, June 13, 2005 9:26 AM Programming | Back to top



Comments on this post: Generate RSS in ASP.Net

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net