By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

Disable Image Caching

P: n/a
How can I disable Image caching?
I use ASP.NET Image web control that it's ImageUrl is constant but the image
is being changed by the code. because of cachin I always see the same image
in my Image web control.
Thank you in advance.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can fool the cache into downloading the image again by adding a query to
the image url:

myImage.ImageUrl = String.Format ("photo?{0}",
System.DateTime.Now.TimeOfDay.ToString());

Eliyahu

"Kamyar Souri" <ks****@booria.com> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
How can I disable Image caching?
I use ASP.NET Image web control that it's ImageUrl is constant but the image is being changed by the code. because of cachin I always see the same image in my Image web control.
Thank you in advance.

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.