System.Web.UI.HtmlControls.HtmlHead pageHeader;
pageHeader = (System.Web.UI.HtmlControls.HtmlHead)this.Page.Hea der;
if (pageHeader != null)
{
HtmlLink rssLink = new HtmlLink();
rssLink.Attributes.Add("rel", "alternate");
rssLink.Attributes.Add("type", "application/rss+xml");
rssLink.Attributes.Add("title", "Some Web Site's RSS Feed");
rssLink.Attributes.Add("href", "http://someweb.net/rss.aspx");
pageHeader.Controls.Add(rssLink);
}
JJ
"JJ" <ab*@xyz.comwrote in message
news:uv**************@TK2MSFTNGP06.phx.gbl...
Thanks Steve. I couldn't find that information anywhere. Now I need to
see if I can programmatically add that to the header, as the master page
is also used in pages without RSS feeds on them.
JJ
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:2B**********************************@microsof t.com...
>It takes a single link element in the header section of a Web page to
ensure browsers recognize the RSS file for your site:
<head runat="server">
<link rel="alternate"
type="application/rss+xml"
title="Some Web Site's RSS Feed"
href="http://someweb.net/rss.aspx" />
</head>
Here's more info:
http://SteveOrr.net/articles/RSS.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"JJ" <ab*@xyz.comwrote in message
news:Ox**************@TK2MSFTNGP02.phx.gbl...
>>>I have a link on a page on my site that when clicked presents the XML
which repesents the RSS feed for the page.
I can't seem to get Internet Explorer to automatically light up its 'RSS
FEED' icon - i.e. its not detecting the rss.
How can I make explorer see the feed?
Thanks,
JJ