I have used the ASP.Net Syndication API to create a RSS Feed to my site. The feed is formated in RSS 2.0 using Rss20FeedFormatter class.
I include the Feed in my Web Page inside a "iframe". When the user clicks on feed item the URL opens in the frame window. But I would like open the Feed URL in a new browser window, however I dont know how I can achieve that.
<rss version="2.0">
<channel>
<title>Channel title</title>
<link>Link to channel page</link>
<item>
<title>First content item</title>
<link>Link to first content item</link>
<pubDate> publication date</pubDate>
</item>
</channel>
</rss>
Such file do not contain anchor tags therefore I suppose that in order to apply your suggested solution do I firstly need to transform the source RSS feed - perhaps using XSL - into a presentable format that will contain the anchor tags ( e.g <a href="{link}"
target="_blank"><xsl:value-of select="title" /></a> , alright ???
fredcsfaria
0 Points
2 Posts
Asp.Net Syndication API - Open RSS Feed URL in new browser window
May 25, 2012 07:38 PM|LINK
Hi,
I have used the ASP.Net Syndication API to create a RSS Feed to my site. The feed is formated in RSS 2.0 using Rss20FeedFormatter class.
I include the Feed in my Web Page inside a "iframe". When the user clicks on feed item the URL opens in the frame window. But I would like open the Feed URL in a new browser window, however I dont know how I can achieve that.
Any suggestion ?
BR,
Faria
ramiramilu
All-Star
97923 Points
14516 Posts
Re: Asp.Net Syndication API - Open RSS Feed URL in new browser window
May 26, 2012 09:13 AM|LINK
in your IFrame page you are consuming RSS feed and creating to anchor tags right...there give target="_blank" to anchor tag....
Thanks,
JumpStart
fredcsfaria
0 Points
2 Posts
Re: Asp.Net Syndication API - Open RSS Feed URL in new browser window
May 28, 2012 06:52 PM|LINK
Hi,
I would like just clarify a point:
The source RSS file has the form below:
<rss version="2.0"> <channel> <title>Channel title</title> <link>Link to channel page</link> <item> <title>First content item</title> <link>Link to first content item</link> <pubDate> publication date</pubDate> </item>Such file do not contain anchor tags therefore I suppose that in order to apply your suggested solution do I firstly need to transform the source RSS feed - perhaps using XSL - into a presentable format that will contain the anchor tags ( e.g <a href="{link}" target="_blank"><xsl:value-of select="title" /></a> , alright ???
BR,
Faria
FightAsABull
Contributor
2228 Points
424 Posts
Re: Asp.Net Syndication API - Open RSS Feed URL in new browser window
May 29, 2012 05:54 AM|LINK
2. Paste more markup here (includes the Frame)