Click here to Skip to main content
15,886,724 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.4K   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.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

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