[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
San Diego Searches For Ways To Deal With Hoarders (News) Download
Reforestation In Cuyamaca Rancho State Park (News) Download
Baja California Officials: Tijuana Is Not Ciudad Juarez (News) Download
Toyota Finds Nothing Wrong With San Diego Prius (News) Download
SDSU Basketball Teams Win Mountain West Conference Tournaments (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...]