Browser RSS feed auto detection code here
Add these lines to the page load event and browsers will auto detect the RSS feeds
List<Category> Catgry = Category.GetCategories();
foreach (Category record in Catgry)
{
HtmlLink link1 = new HtmlLink();
link1.Attributes["type"] = "application/rss+xml";
link1.Href = "GetArticlesRss.aspx?CatID=" + record.ID;
link1.Attributes["title"] = "RSS " + record.Title;
link1.Attributes["rel"] = "alternate";
this.Page.Header.Controls.Add(link1);
}
Donât forget to add references to the appropriate libraries :D
sh*t happens
|