Andrew Stopford's Weblog

poobah

Sponsors

News

Articles

Family

Old Blogs

Aspx TreeView's are a pain in the %&$* i

This might having something to do with the fact I have been coding non-stop for 10 hours or so and its past midnight but I have run into an issue with asp.net treeviews that I just cannot solve. While I can bind a treeview to a datasource fine it seems to be caching the data and I have no way of stopping it (I know it's the cache as a quick edit to the web.config solves the problem), I really don't want my data cached, any clues on stopping this?

Update: Moment of "Doh!", thanks Scott for offer of help and also thanks to Arnaud for the suggestion, one line fixes are great and frustrating as heck when it was staring you in the face - long code session hazard :(

Posted: Aug 29 2006, 12:05 AM by astopford | with 3 comment(s)
Filed under:

Comments

ScottGu said:

Send me email describing how you are building the app and I'd be happy to help.

thanks,

Scott

# August 28, 2006 10:26 PM

Arnaud said:

If you use an XmlDataSource, you should write :

MyXmlDataSource.EnableCaching = false;

Hope this will help you! :)

# August 29, 2006 3:32 AM