Click here to Skip to main content
15,891,837 members
Articles / Web Development / ASP.NET

Hack to enforce the cache of an XmlDataSource to invalidate

Rate me:
Please Sign up or sign in to vote.
4.17/5 (4 votes)
15 Jun 2008CPOL2 min read 37.5K   116   15  
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.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
China China
I am a Chinese software developer, while I am now working in Japan.
If you can read in Chinese, you may visit my blog in Chinese:
http://blog.joycode.com/percyboy/
Thanks!

Comments and Discussions