How to get Explorer 7 to pick up my RSS link

J

JJ

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
 
J

JJ

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
 
J

JJ

System.Web.UI.HtmlControls.HtmlHead pageHeader;
pageHeader = (System.Web.UI.HtmlControls.HtmlHead)this.Page.Header;
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top