Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2006, 09:04 AM
Registered User
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madok
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
validate rss feed arafat.eajaz RSS and Atom 2 September 6th, 2012 08:56 AM
Rss Feed in php surendran RSS and Atom 2 October 22nd, 2005 12:59 AM
RSS Feed to PHP in Array? sami PHP How-To 1 April 17th, 2005 04:53 PM
RSS Feed Shibu Classic ASP XML 0 January 21st, 2005 08:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.