[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.org podcasts: News
Authorities: Cross-Border Tunnel Doesn't Have a U.S. Exit (News) Download
Water Restrictions Start Today in Escondido (News) Download
S.D. Helps to Kick Off Read Across America (News) Download
California Bans Soda in Schools (News) Download
State Regulators Sued For Allowing Insurers to Deny Autism Care (News) Download


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...]