Showing the www.ASP.NET RSS Feed on the 4Guys Homepage
In case you haven't heard yet, the official ASP.NET Web site - www.ASP.NET - now has an RSS feed for its latest articles section. I've added this to the 4Guys ASP.NET homepage using the RssFeed custom control I developed. Displaying the www.ASP.NET latest article feed requires only adding the following content to a Web page:
<skm:RssFeed id=clrFeed DateFormatString="(MMMM dd)" Width="100%"
HeaderStyle-HorizontalAlign="Center" MaxItems="5"
HeaderStyle-Font-Bold="True"
HeaderText="Latest ASP.NET Articles from www.ASP.NET"
CellPadding="4" BorderWidth="0px" BorderStyle="None"
Font-Size="12pt" BackColor="#eeeeee" Font-Names="Arial"
ShowHeader="True" runat="server" HorizontalAlign="center">
</skm:RssFeed>
<SCRIPT language=C# runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
clrFeed.DataSource = "http://asp.net/modules/articleRss.aspx?count=7&mid=64";
clrFeed.DataBind();
}
}
</SCRIPT>
Pretty neat, eh? You can learn more about RssFeed at this article, or you can check out the complete source code (and add functionality to it, if you'd like!) at the RssFeed GDN Workspace.