Tuesday, February 10, 2009

Using ASP to Code an RSS Feed

Guest Author - Lisa Shea

RSS feeds let you easily syndicate your content to an end user or another website. ASP can help you easily create your own RSS feed for your website. I know what I'm about to describe will sound complicated at first :). The best way to learn this system is simply to give it a try, and things will make sense when you see them in action.

First off, what IS an RSS feed? Think of it as a news alert. If you have an RSS reader, it actively polls a website to see if anything new is added. It typically runs as a taskbar icon on your desktop. Let's say you are polling this ASP site. Every time I add a new article, the RSS feed will update for my site. Your reader will see that new article and put a little alert on your desktop. You click on your reader, see a brief description of my article, and can read it if you want.

To get a reader, go to RSSReader.com. It's free and easy. Now you can test how RSS works.

So now that you have a reader, you need to point the reader at an RSS feed, so it gets the updates of what is going on at the site. In essence, you point the reader at a XXXXXXX.RSS file. The format of the RSS feed is XML. XML is a tag language, just like HTML. Instead of having commands like HTML and BODY, in the RSS file you end up with tags such as COPYRIGHT and PUBDATE. The tags in the RSS file help the RSS reader describe each "news flash" it is displaying.

Go into your RSS reader and create a new feed, using this RSS feed source:

http://www.bellaonline.com/site.rss?id=272

That is the feed for this ASP site. See how your RSS reader now shows the latest 3 articles from this site? Whenever I add a new article to this ASP site, the reader will alert you and let you see what it's about. This is a GREAT way to stay in touch with your website visitors and to let them know what is fresh and new.

So now that you understand what RSS is all about, and how it works, it's time to look into how to code a RSS file for your own website, to alert your visitors to changes you've made.

1 comment:

Anonymous said...

I am quite new to Web developing. I was very proud of myself when I developed my own Website.
The next step was now to bring traffic to my site. After surfing the web I came across an article
that suggested to have a RSS Feed on my site to which people can subscribe to.
Again I surfed the web to find our what RSS Feeds were.
After many hours of reading Wiki and lots of articles, blogs etc I finally figured out how to do this,
and that it was actually really simple, but the articles, blogs confused me like you won't believe ! I would now like to share with you 3 simple steps to add your own RSS feed:

1) Create a XML file with all the articles, product descriptions, your Website headlines or whatever you
would like to appear in your feed, if you are not fimiliar
with creating XML files, download a RSS Feed Editor to do this for you. I have used
RSSEditor (http://www.rss-info.com/RSSeditor-v09-54-setup.exe)

2) After creating the XML file, Upload the XML file to your host, you can upload the XML file
to any directory in your Webiste.

3) Add a RSS Feed icon to a page on your website
Add a link to the image to the feed URL, i.e. the XML file which you have uploaded, eg. http//www.retaildaddy.com/retaildaddy.xml

4) Now upload the page/pages on which you have added the Feed icon and link to you host
and voila you've got a RSS Feed of your Website !!!

See the RSS Icon on http://www.retaildaddy.com as an example.