Add RSS feed from a search

Topics: ASP.NET 2.0, Business Logic Layer
Apr 28, 2008 at 5:27 AM
Edited Apr 28, 2008 at 5:34 AM
Here is a silly implementation of how to let you users subscribe to a rss feed based upon a search.
In search.aspx:
Between </asp:repeater>(line 47) and <asp:PlaceHolder ID="Paging" runat="server" />(line 48)

Add:
<h2><a href="http://pipes.yahoo.com/pipes/pipe.run?id=6pEImAES3RGqGdHsCB2yXQ&render=rss&blogUrl=<%=Utils.AbsoluteWebRoot %>&txtSearchInput=<%=Request.QueryString"q"%>"><img src="<%=Utils.AbsoluteWebRoot %>/pics/rssButton.gif" alt="Click here for RSS Feed"/>Click here to get RSS feed for this search. *Beta</a></h2>

So in total
</asp:repeater>

<h2><a href="http://pipes.yahoo.com/pipes/pipe.run?id=6pEImAES3RGqGdHsCB2yXQ&render=rss&blogUrl=<%=Utils.AbsoluteWebRoot %>&txtSearchInput=<%=Request.QueryString"q"%>"><img src="<%=Utils.AbsoluteWebRoot %>/pics/rssButton.gif" alt="Click here for RSS Feed"/>Click here to get RSS feed for this search. *Beta</a></h2>

<asp:PlaceHolder ID="Paging" runat="server" />


How it works? Yahoo pipes! Specifically one I made. If you don't know about yahoo pipes then MUST check them out @ http://pipes.yahoo.com
*Be careful with pipes they are almost as addicting as <%=Reader.Settings.CurrentAddiction %>


The pipe still does need some formatting work such as htmldecoding of the title. Ill get around to it, or you can and let me know!

eastons