C#
  Home arrow C# arrow Creating an RSS Feed with ASP.Net Written ...
Iron Speed
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
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 / 20
    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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    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("\"", """);
     

    C# ARTICLES

    - Value Types and Reference Types
    - Defining Member and Type Visibility
    - Managing Files in C#
    - Working with Windows Registry in C#
    - Lossless Image Resizing in C#
    - Lossless Image Converting in C#
    - Creating an RSS Feed with ASP.Net Written in...
    - Polymorphism in C#
    - Inheritance in C#
    - C# Events Explained
    - C# Delegates Explained
    - C# StreamReader and StreamWriter Explained
    - C# FileStream Explained
    - A Look at C# File and FileInfo Classes
    - A Look at C# Directory and DirectoryInfo Cla...




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway