Click here to Skip to main content
6,594,932 members and growing! (14,936 online)
Email Password   helpLost your password?
Web Development » ASP.NET Controls » General     Intermediate License: The Code Project Open License (CPOL)

RSS Reader Web Control

By M Usman

A simple to use, scrolling news reader web control
Windows, .NET (.NET 2.0), ASP.NET, Dev
Version:3 (See All)
Posted:23 Mar 2008
Views:13,361
Bookmarked:35 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
12 votes for this article.
Popularity: 3.89 Rating: 3.60 out of 5
1 vote, 8.3%
1
2 votes, 16.7%
2
3 votes, 25.0%
3
2 votes, 16.7%
4
4 votes, 33.3%
5

Introduction

RSS (Really Simple Syndication) Feeds are becoming very popular these days. People need Country News at their own commercial websites. Today the most powerful websites are being developed in ASP.NET due to the fact that ASP.NET provides Web Controls that enable the Software Reuse property of Software Engineering Models. RSS Reader Control may be just dragged and dropped on web forms, can be linked to an RSS Feed and it will display a smooth, cool, and scrolling interface to the Feeds.

Background

The main power behind creation of such feeds is XML (Extensible Markup Language). XML is a structured language, thus provides support for the structured sharing of data. XML documents are built under a specific format. An example of such a document is as follows:

RSS Feeds work in the same way. Today News Agencies update a specific document on a daily basis. The same document is provided an interface in the websites. So the websites always have the latest contents of news. Obviously the creation of such documents is not easy as far as their property of being case-sensitive is concerned. Today, there are many XML editors available in the market. The structure of RSS Feeds is a standard and is unique around the world. A sample RSS Feed looks like this:

A detailed description on RSS can be found here.

RSS Reader provides an interface to such a document. It extracts the XML from the specific documents, implies the scrolling effects to the contents read.

Using the Code

To use RSS Reader, you will need to add RSS Reader to your tool box by locating the RSSReader.dll. Once RSS Reader is in your tool box, you will need to drag it to the page. You will also need to provide the URL where to fetch news from. Different CSS classes may also be applied for a good interface of the control. Since the header, content area, and footer are purely editable and styleable, you will have the option to design the control to your requirements and likings. The list of properties is as follows:

  • HeaderText: The Text to appear as the control title, e.g. Country News
  • HeaderCssClass: The CSS Class to apply on Header
  • RSSHeading: The Text to appear as heading for the news inside the control, e.g. News
  • RSSHeadingCssClass: The CSS Class to apply on news heading
  • RSSNewsCSSClass: The CSS Class to apply on the contents of news
  • FooterText: The Text to appear in the footer of the control. e.g. News from http://www.thenews.com.pk
  • FooterCssClass: The CSS Class to apply on the footer of the control

After setting the properties, the control will look like this:

Points of Interest

Since the XML document is the data source for the control, it should be in the standard format, so that the control is able to read the contents. The Case Sensitivity of XML may also be of a great concern.

History

  • 23rd March, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

M Usman


Member
Muhammad Usman
Software Developer, M.sc(Computer)
Pakistan
Occupation: Software Developer
Company: Marriala Technologies
Location: Pakistan Pakistan

Other popular ASP.NET Controls articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 12 of 12 (Total in Forum: 12) (Refresh)FirstPrevNext
Generalgood but.. PinmemberNorberto Olazabal7:38 19 May '08  
QuestionGreat Control!!! Pinmembervvvlad23:45 21 Apr '08  
QuestionSource code & how to set to a DataSet? [modified] PinmemberSuper Garrison12:25 15 Apr '08  
Generalsource code for learn in this article Pinmembernhhoan22:13 12 Apr '08  
GeneralRe: source code for learn in this article PinmemberM Usman1:39 14 Apr '08  
QuestionSource Code? PinmemberDavidjwong15:22 26 Mar '08  
GeneralRe: Source Code? PinmemberM Usman2:56 27 Mar '08  
GeneralRe: Source Code? PinmemberDavidjwong13:39 27 Mar '08  
GeneralRe: Source Code? PinmemberMember 27812114:57 28 Mar '08  
GeneralI like it PinmemberTorben711:25 26 Mar '08  
GeneralRe: I like it PinmemberM Usman2:55 27 Mar '08  
GeneralGood Job PinmemberRai Shahid3:39 24 Mar '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 23 Mar 2008
Editor: Deeksha Shenoy
Copyright 2008 by M Usman
Everything else Copyright © CodeProject, 1999-2009
Web15 | Advertise on the Code Project