C#
  Home arrow C# arrow Creating an RSS Feed with ASP.Net Written ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Creating an RSS Feed with ASP.Net Written in C#
By: Luke Niland
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 32
    2007-07-02

    Table of Contents:
  • Creating an RSS Feed with ASP.Net Written in C#
  • Creating the Pages
  • Code Behind Page
  • The Data Repeater

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating an RSS Feed with ASP.Net Written in C#


    (Page 1 of 4 )

    RSS feeds are massively popular online. It's no wonder; they're a great way for users to receive news, blog entries, and other content in which they're interested. If you want to set one up for your web site, keep reading.

    What is RSS?

    RSS. Your probably already know what this is, but put simply RSS (Really Simple Syndication) is just an XML file served up by a web server, normally containing news items, stock prices and so forth.

    The file contains certain tags that define it as an RSS feed (such as the opening <rss version="2.0"> tag).

    RSS feed readers such SharpReader can use these XML files and display their content, headlines and more. These readers mean that, from one place, you can easily see all the news and information to which you have subscribed.

    In this article, we will go though creating an RSS feed, using an ASP.Net web page, written in C#. We will also need to have a back end SQL server database that contains the news stories we are going to put into the RSS feed.

    Layout of Database table

    First of all, we need to have the database with some stories in it. For this article we will be using a table as described in the table below.

    Field name

    Field Type

    Notes

    id

    Unique integer id of the field

    ID of the story

    headline

    VarChar field, 75 long

    Headline of the story

    story_text

    Text field

    Full text of the story


    If you are creating the database from scratch, make sure there is some test data in there to use. The headline field will be what most people first see in the RSS reader application.

    Once you have the above table (call it something like tbl_stories), you can start to create the ASP.Net page that will serve the feed.

    More C# Articles
    More By Luke Niland


       · Hi, Hope you like the article and find it useful, its a fairly straight forward...
       · Great explanations. Not like most on the net. Anyway, just a small correction in...
       · Hi,Glad you liked the explanations i try to keep them as simple as possible....
       · How Aboutdata = data.Replace("\"", """);
       · However...you lost me at step 2. Not your fault, but it all looks like Greek to...
       · Thanks for post,One problem i found that pubdate must be pubDate to allow it to...
     

    C# ARTICLES

    - Coding a CRC-Generating Algorithm in C
    - Cyclic Redundancy Check
    - Handling Methods and Functions
    - Destroying Objects in C#
    - Creating Objects in C-Sharp
    - Classes and Objects
    - Programming Languages: Managed versus Native
    - LINQ-to-MySQL with DbLinq in C#
    - Working with Dates and Times in C#
    - Generics, Dictionaries, and More
    - More About Generics
    - Working with C# Collections
    - Generics
    - C# and XML
    - Pointers and Arrays in C#





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek