[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
Saints Celebrate First NFL Title (News) Download
Statewide Efforts To Pass School Parcel Tax Move Forward (News) Download
Walking Can Be Hazardous In San Diego (News) Download
Performance-Enhancing Gene Therapy May Be Next For Cheating Athletes (News) Download
SDFD Chief Talks About Brownouts (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...]