RSS2HTML Scout

Hello, World! example for RSS2HTML Scout library and ASP.NET

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 and displaying in ASP.NET 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 the latest version of RSS2HTML Scout. You can download it here

1) Run Visual Studio.NET
2) Go to File menu and select New Project:
 
New project menu
 
Select ASP.NET Web Application project type and click OK
 
ASP.NET new project wizard
 
3) Visual Studio.NET will create new empty ASP.NET project. Double-click on the empty space of the form:
 
New blank project generated by ASP.NET
 
This will open the source code editor window on procedure handling Page_Load event. We will place our code for  SWF flash animation generation into this procedure:
 
Page load handler procedure generated by ASP.NET IDE
 

4) Use the following code for procedure (you can simply copy and paste this code from this page into ASP.NET source code editor window):

 

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here

        ' uncomment line below to force cache refresh on every script load
        Response.Expires = -1

        Dim RSS2HTML = CreateObject("RSS2HTMLScoutLib.RSS2HTMLScout")

        RSS2HTML.ItemsPerFeed = 5

        ' ##### 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.Clear()
        Response.Write(RSS2HTML.HTMLOutput)
        Response.End()

        RSS2HTML = Nothing

    End Sub
 
5) Now run ASP.NET project using Debug | Start command:
 
Start project menu
 

Visual Studio.NET will run ASP.NET project on web-server and you will see Internet Explorer window with generated HTML converted from RSS channels using RSS2HTML Scout:

HTML content converted from RSS using RSS2HTML Scout ActiveX library

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




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

See also:

PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  CONTACTS  |  TESTIMONIALS  |  NEWS
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