473,394 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to disable caching pictures

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

Jun 26 '06 #1
5 1042
I trick the browser by adding a random query parameter to the image url:

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

Eliyahu

"Ufit" <ko**************@NOpoczta.fm> wrote in message
news:e7**********@news.onet.pl...
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

Jun 26 '06 #2

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:eZ**************@TK2MSFTNGP02.phx.gbl...
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
Jun 26 '06 #3
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.
"Ufit" <ko**************@NOpoczta.fm> wrote in message
news:e7**********@news.onet.pl...

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eZ**************@TK2MSFTNGP02.phx.gbl...
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

Jun 26 '06 #4

"Kevin Spencer" <uc*@ftc.gov> wrote in message news:u0**************@TK2MSFTNGP02.phx.gbl...
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
Jun 27 '06 #5
"Ufit" <ko**************@NOpoczta.fm> wrote in message
news:e7**********@news.onet.pl...
Anyway other question - how to display
a webform in separate window from main form instance?
F.ex.
Dim f as New WebForm2
WebForm2. ??????


No - that's WinForms.

You need the Javascript window.open syntax.
http://www.google.com/search?sourcei...ndow%2Eopen%22
Jun 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
1
by: Rune | last post by:
Hi I use MMIT to render XHTML pages. How do I disable client caching? I've tried the following commands: Response.CacheControl = "private"; Response.Cache.SetNoStore();
4
by: Captain Chaos | last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ? The other Elements of the Page should not being cached because they change. Is it possible to cache parts of a page on the...
10
by: Umut Tezduyar | last post by:
It seems, it is caching it. The following code is an example for it. How can avoid from this. override void OnLoad (sender and eventargs) { Control control = this.LoadControl (path);...
2
by: Mantorok | last post by:
Hi Is there an easy way to disable ALL client-side caching for my entire web-site? Is there also an easy way to cause any "refreshes" and "back" actions to cause an automatic re-direct to my...
1
by: keithb | last post by:
Using the VS built-in web server, class properties and datatables seem to be getting cached between my debug sessions. How can I disable all caching? Thanks, Keith
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
4
by: Harry Haller | last post by:
What's wrong with this: Error 3 'System.Web.Caching.Cache' is a 'type', which is not valid in the given context public List<AssetSummaryGetAssetSummary() { return...
6
by: boriq | last post by:
Hallo, I created a project with more that 1000 different pictures in it. The project website is divided into more subpages. Problem is that these pages (pictures) are not cached on local...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.