RSS2HTML Scout

Hello, World! example for RSS2HTML Scout library and ASP

Products Download Purchase Support Contacts
 
RSS2HTML Scout
Direct Links

 

 

Looking for ASP script to display RSS? Check our RSS2HTMLPro.ASP script for ASP/ASP.NET

 

Converting RSS to HTML code and displaying in ASP using RSS2HTML Scout library

 

You can download the source code of this example here: rss2htmlscout_asp.zip

This page provides a simple example for RSS2HTML Scout to show how you can start with RSS2HTML Scout library and ASP web-server.

RSS2HTML Scout is capable of downloading RSS feeds using built-in multi-threaded and converting RSS into HTML code using HTML templates (check online documentation for more information about templates)

Download and install latest version of RSS2HTML Scout. You can download it here

1) Create "Convert.asp" file in the notepad.

Convert.asp will convert RSS into HTML from given URL. Insert the following code into "Convert.asp":

<html><body>

Below is HTML code generated by <a href="http://www.bytescout.com/rss2htmlscout.html">RSS2HTML Scout library</a>. <b>ItemsPerFeed</b> property = 3 so only 3 newest items are displayed per feed.

<%
Response.Expires = -1

Set RSS2HTML = CreateObject("RSS2HTMLScoutLib.RSS2HTMLScout")

RSS2HTML.MainHeader = "<HR>main header here<HR>"
RSS2HTML.MainFooter = "<HR>main footer  here<HR>"
RSS2HTML.ItemsPerFeed = 3

' ##### we can add more than one RSS feed #########
RSS2HTML.AddFeed  "http://bytescout.com/news.xml", 180 ' update every 180 minutes (3 hours)
RSS2HTML.AddFeed  "http://rss.news.yahoo.com/rss/internet", 180
RSS2HTML.AddFeed  "http://www.apple.com/main/rss/hotnews/hotnews.rss", 180
' RSS2HTML.AddFeed  "http://google.blogspace.com/index.xml", 10
' RSS2HTML.AddFeed  "http://blogs.pcworld.com/staffblog/index.rss", 10
' RSS2HTML.AddFeed  "http://www.quotationspage.com/data/qotd.rss", 10

RSS2HTML.Execute

Response.Write RSS2HTML.HTMLOutput
Set RSS2HTML = nothing
%>

</body></html>

2) Place "Convert.asp" file into the root folder on your web-server. (This folder is C:\Inetpub\wwwroot\ by default in IIS on Windows 2000 and XP)
 
3) Now open "http://localhost/Convert.asp" (or "http://<your_webserver_name>/Convert.asp") in Internet Explorer browser. You will see HTML page generated from RSS channels in browser window:
 

HTML content converted from RSS using RSS2HTML Scout ActiveX library

To include this script into an existing page use virtual include ASP command. For example you can include generated HTML it into MyPage.asp like this:

<!--#include virtual="Convert.asp"-->

You can download the source code of this example here: rss2htmlscout_asp.zip




"Hello, World!" examples for different programming languages will guide you step by step from the very beginning:

See also:

ByteScout, 2003-2005. All other company and product names may be trademarks of their respective companies.Flash and Macromedia Flash are trademarks of Macromedia, Inc. Privacy Statement