I found that when you change the Data property of an XmlDataSource control via code, it will not automatically invalidate the cache. This is a hack for this problem. ...