[My Blog] | [Code Projects Home] | [skmMenu] | [RssFeed]

RssFeed Demo :: Podcast Feeds

This demo illustrates how to display a podcast feed. RssFeed version 1.9 introduced the RssEnclosure property of the RssItem class, as well as properties for displaying enclosure information in the "default" RssFeed view (namely, ShowEnclosure and EnclosureLinkText). This demo shows the latest feed from KPBS News.


KPBS News
State Senator Jeff Denham Discusses Recall CampaignDownload
State Republicans Seek to Streamline Government Download
Number of SDSU Student Arrests Under ScrutinyDownload
Group Says Solar Power Could Meet U.S. Energy NeedsDownload
Officials Reconsidering Policy that Bans Aerial Firefighting at NightDownload
SD's New School Chief Moves Forward With PlansDownload
Group Opposes Using Bond Funds for Prison ExpansionDownload
Feinstein's Support for Clinton's Presidential Bid WaveringDownload
San Diego's Small Schools May Close Due to Budget CrisisDownload
Groups Want Public Hearing on San Onofre Toll RoadDownload


Source Code

<%@ Register TagPrefix="skm" Namespace="skmRss" Assembly="skmRss" %>
<%@ Import Namespace="skmRss.Engine" %>

<skm:RssFeed id="RssFeed1" runat="server" ShowEnclosure="True" ShowPubDate="False"
	Font-Size="10pt" Font-Names="Verdana" Target="_blank"
		CellPadding="-1" CacheDuration="60">
		<HeaderStyle Font-Size="14pt" Font-Bold="True" HorizontalAlign="Right" ForeColor="White" BackColor="#000040"></HeaderStyle>
		<AlternatingItemStyle BackColor="#E0E0E0"></AlternatingItemStyle></skm:RssFeed>

<script language="C#" runat="server">

void Page_Load(object sender, EventArgs e)
{
  try
  {
    RssFeed1.DataSource = "http://kpbs.org/news/podcast/";
    RssFeed1.DataBind();
  }
  catch (FeedTimeoutException fte)
  {
    Response.Write("Timed out when attempting to access the site.");
  }
  catch (Exception ex)
  {
    Response.Write("There was some exception.");
  }
}
</script>	

[Return to the article...] | [Return to the RssFeed Page...]