Showing the www.ASP.NET RSS Feed on the 4Guys Homepage

Published 28 November 03 06:11 PM | Scott Mitchell

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.

Filed under: ,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Archives

My Books

  • Teach Yourself ASP.NET 4 in 24 Hours
  • Teach Yourself ASP.NET 3.5 in 24 Hours
  • Teach Yourself ASP.NET 2.0 in 24 Hours
  • ASP.NET Data Web Controls Kick Start
  • ASP.NET: Tips, Tutorials, and Code
  • Designing Active Server Pages
  • Teach Yourself Active Server Pages 3.0 in 21 Days

I am a Microsoft MVP for ASP.NET.

I am an ASPInsider.