Asp.net MVC RSS help needed.
        Posted  
        
            by coure06
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by coure06
        
        
        
        Published on 2010-05-15T08:21:10Z
        Indexed on 
            2010/05/15
            8:24 UTC
        
        
        Read the original article
        Hit count: 428
        
Following the tutorial at
http://www.developerzen.com/2009/01/11/aspnet-mvc-rss-feed-action-result/  
My code for the controller is like this, but i am not getting any result from http://www.gadgetfind.com/rss.xml
    public ActionResult Feed()
    {
        SyndicationFeed feed =
                new SyndicationFeed("Test Feed",
                            "This is a test feed",
                            new Uri("http://www.gadgetfind.com/rss.xml"),
                            "TestFeedID",
                            DateTime.Now);     
        SyndicationItem item =
            new SyndicationItem("Test Item",
                                "This is the content for Test Item",
                                new Uri("http://www.gadgetfind.com/rss.xml"),
                                "TestItemID",
                                DateTime.Now);
        List<SyndicationItem> items = new List<SyndicationItem>();
        items.Add(item);
        feed.Items = items;
        return new RssActionResult() { Feed = feed };
    }
© Stack Overflow or respective owner