how to disable caching pictures

U

Ufit

I have image control with jpeg url on my asp.net web. That jpeg has the same name but changes
Problem is that web is caching the old one even if its contents have changed.
I cannot change the name of that pic but I must display current image.
Please help with some good solution. Thanks

Ufit
 
U

Ufit

Eliyahu Goldin said:
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg?' + (new Date()).getMilliseconds()

Eliyahu

Checked - doesn't work. Any other ideas?
Thanks

Uf
 
E

Eliyahu Goldin

I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg?' + (new Date()).getMilliseconds()

Eliyahu
 
K

Kevin Spencer

Does work. What did you do?

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
 
U

Ufit

Kevin Spencer said:
Does work. What did you do?

--
It doesn't with other non jpeg pics too but I solved that with other trick.
Anyway other question - how to display
a webform in separate window from main form instance?
F.ex.
Dim f as New WebForm2
WebForm2. ??????
Thanks for help

Ufit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top