Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 June 20th, 2008, 03:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default Caching

I have followed Scott Guthrie's Linq to XML to read from an RSS file and send the results to a DataList. The code is below:

Dim rssFeed As XDocument = XDocument.Load("http://rss.cnn.com/rss/cnn_latest.rss")
Dim feeds As IEnumerable

feeds = (From item In rssFeed.Descendants("item") _
                     Select New With { _
                            .Title = item.Element("title").Value, _
                            .Link = item.Element("link").Value, _
                            .Published = item.Element("pubDate").Value, _
                            .Description = item.Element("description").Value}).Take(5)

DataList1.DataSource = feeds
DataList1.DataBind()

Everything works, however it caches the feed. Is there a way to force the feed not to cache?

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
caching jezywrap ASP.NET 2.0 Professional 0 February 27th, 2007 05:00 PM
Caching Amateur BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 9th, 2007 02:50 PM
caching? freaknfreak HTML Code Clinic 1 January 24th, 2006 12:10 PM
Caching bmains ASP.NET 1.x and 2.0 Application Design 4 February 27th, 2004 09:06 AM
.NEt Caching Mahavishnu VS.NET 2002/2003 0 February 17th, 2004 08:00 AM





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