5,695,118 members and growing! (14,498 online)
Email Password   helpLost your password?
Web Development » ASP.NET » Utilities     Intermediate License: The Code Project Open License (CPOL)

A Simple RSS News Generating Tool

By Stephan Pilz

A tool to generate/manage news and provide news via RSS.
Javascript, XML, SQL, HTML, VB, VC7, C++Windows, .NET, .NET 1.1, Win2K, WinXP, ASP.NET, ADO.NET, SQL 2000, IIS 5, VS.NET2003, SQL Server, IIS, Visual Studio, DBA, Dev, QA

Posted: 28 Apr 2005
Updated: 28 Apr 2005
Views: 28,390
Bookmarked: 46 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
8 votes for this Article.
Popularity: 3.29 Rating: 3.65 out of 5
2 votes, 25.0%
1
0 votes, 0.0%
2
2 votes, 25.0%
3
2 votes, 25.0%
4
2 votes, 25.0%
5

Sample Image - ShowNews.jpg

Introduction

This article presents to you a small web based tool, to edit and manage news information (for your colleagues). It uses RSS to provide news, so you can use RSS-Readers to collect news. Some simple web front-ends are included for IUD, configuration and to show news.

Background

The Code Project article, "8 tips to make you more efficient as an ASP.NET developer" from Paul Heap has inspired me, to write this little tool. This tool helps to provide some development news to each developer in our company.

The RSSNewsFlash-Project supports some news categories too (configured in database, see below). In this connection, I would like to mention that I assume a database from MS SQL Server. The access to the database is using ODBC with SQL Server Authorization and the script to create the tables may include some SQL Server specific syntax or data types. To modify, read the information in the table below.

My solution should be small and nice. Therefore, I haven't implemented a very colorized and professional user interface and big database design. It's only a working beginning.

Install

  • Unzip the package to Inetpub\wwwroot.
  • Add a new virtual directory in IIS called RSSNewsFlash pointed to the install dir.
  • Add a new standard document in settings of the virtual directory: AddNews.aspx.
  • Execute the script in CreateScript.sql included in the package on an SQL Server database.
  • Create an ODBC entry to the SQL Server database (Important: SQL Server Authorization !!!).
  • Modify some settings in web.config appsettings-section.
    • Key DSN: The DSN of the created ODBC entry.
    • Key PhysicalUser: User for database login.
    • Key PhysicalPassword: Password for database login.
    • Key URL: URL of created virtual directory on ISS.
    • All other keys which configure some information in the RSS-Stream.
  • Now you are ready to use and open AddNews.aspx.
  • Via link "Download RSS News Reader" at the bottom left of the page, you can install a freeware RSS-Reader.
  • To configure the Reader to use your own RSSNewsFlash, click the link "Setup the RSS News Reader" at the bottom of the page.
  • If you want to use another RSS tool, you need only the link present in the page "Setup the RSS News Reader".

Hints

Here comes some hints to expand the feature list or modify the project for your own requirements.

  • If you want to use another database server, you must modify the creation script and source code. Problem areas can be the Identity and Text attributes.
  • If you need an access to the database in a different way (not ODBC with SQL Server Authorization), you should modify the code for database connection in AddNews.aspx.vb, ShowNews.aspx.vb and RSS.aspx.vb.
  • For using the categories as Filter in the RSS-Reader, you should modify the source in RSS.aspx.vb. Here you can insert a URL parameter (i.e. "cat") to prepare the select statement. You add this parameter in the URL calling from the RSS-Reader.

The tables and the pages

Table/Page Descripton
Table rss_newsflash Stores all news.
Table rss_newsflash_authors Stores all possible authors.
Table rss_newsflash_categories Stores all possible categories.
Table rss_newsflash_response Stored information, which client has asked for the latest news and timestamp.
Page AddNews.aspx Adds and modifies a news. Optional URL parameter "newsid" is pointed to "rss_newsflash.temp_refid" and determines if there is a news to create or modify.
Page ConfigRSS.aspx Shows a help page to configure the Freeware RSS Reader.
Page ShowNews.aspx Presents a news. Called from RSS-Reader. URL parameter "newsid" is pointed to "rss_newsflash.temp_refid"
Page RSS.aspx Generate the RSS-Stream. Normally only called from RSS-Reader.

Screenshots

This is the help page to configure the freeware RSS-Reader. The page is dynamically generated to show the correct URL.

The Config-Help Page

The page where you enter a new news and/or modify/delete. This page can be accessed directly via http://yourhost/RSSNewsFlash/AddNews.aspx.

The Page for IUD news

An overview in the RSS-Reader.

Preview in the RSS-Reader

News are present in a simple web page with Link buttons to modify or add news and navigate previous/next.

The News-Presenting Page

History

Initial version.

License

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

About the Author

Stephan Pilz


I started 1987 when I was about 14 years old, with Basic and Pascal on 8Bit Atari with insanely 130KB of memory, later 16Bit Atari (4Megs). In study I learn C, C++, Modula-2, Assembler and other science languages (Prolog, ADA). I hold a german engineer's degree Dipl.-Ing. (FH) in "Technical Computer Science" from the University of Applied Sciences Mittweida, Germany.

Now I develop PPS and Supply-Chain-Software for middle and great companies in Chemnitz/Germany with Web- and MFC-Frontends in C, C++, ASP.NET, ADO.NET, XML, HTML, JavaScript.

My main tasks are specify and write down solutions of problems and implement the first code snippets.

In my spare time I like to drive a (fast) motocycle, read many science fiction and fantasy books and I'm a enthusiastically shotokan karate fighter. In winter I falling down from hill with alpin ski on foots, because snowboards are only for drug sniffers Wink
Occupation: Web Developer
Location: Germany Germany

Other popular ASP.NET articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 4 of 4 (Total in Forum: 4) (Refresh)FirstPrevNext
GeneralDid Not Run in Thunderbirdmemberjabailo5:31 16 Jun '06  
GeneralRe: Did Not Run in ThunderbirdmemberStephan Pilz0:15 25 Jul '06  
GeneralLooks Very Good !memberTrance Junkie2:40 20 Dec '05  
Generalgood applicationmemberpaul heap20:59 30 Apr '05  

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

PermaLink | Privacy | Terms of Use
Last Updated: 28 Apr 2005
Editor: Sumalatha K.R.
Copyright 2005 by Stephan Pilz
Everything else Copyright © CodeProject, 1999-2008
Web17 | Advertise on the Code Project