CS Recent Blog Post Sidebar
This is a UserControl I wrote because I wanted to show the most recent posts for a specific blog littered throughout my site. Place this control in a directory and reference it like a regular user control.
<%@ Register TagPrefix="BR" Src="~/UserControls/RecentPostsSideBar.ascx" TagName="RecentPostsSideBar" %>
<BR:RecentPostsSideBar id="fdr_rp" runat="server" EnableViewState="false" Title="Recent Podcasts" AppKey="podcast" />
- AppKey -- the name of the blog you want the most recent posts to appear.
- Title -- the text for the header of the content area.
- PageSize -- the number of records to show, defaults to 5.
The snippet above will pull the most recent 5 posts from the blog called "podcast" and display them with the title of Podcast.
CS Recent Blog Post Sidebar
Let me know what you think.