' visit http://bytescout.com/rss2htmlscout_example_asp_net.html for full version of this example
' converting RSS to HTML with ASP.NET. Check /Examples/ASP.NET/ sub-folder for full source
' code for this example

    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

' visit http://bytescout.com/rss2htmlscout_example_asp_net.html for full version of this example

Copyright 2005-2006