473,804 Members | 3,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1069
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg ?' + (new Date()).getMill iseconds()

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.co m> wrote in message news:eZ******** ******@TK2MSFTN GP02.phx.gbl...
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg ?' + (new Date()).getMill iseconds()

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.co m> wrote in message
news:eZ******** ******@TK2MSFTN GP02.phx.gbl...
I trick the browser by adding a random query parameter to the image url:

'myPicture.jpeg ?' + (new Date()).getMill iseconds()

Eliyahu


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

Uf

Jun 26 '06 #4

"Kevin Spencer" <uc*@ftc.gov> wrote in message news:u0******** ******@TK2MSFTN GP02.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
3268
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" http://www.tonymarston.co.uk/php-mysql/backbuttonblues.html -- Tony Marston http://www.tonymarston.net
1
418
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
1389
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 Client but not the whole page
10
4402
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); this.Controls.Add (control); // I change the content of the html of the control. TextReader reader = new StreamReader (path);
2
1707
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 login page? Thanks Kev
1
2039
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
2740
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 uses cacheProfiles in web.config then I need to deploy different web.config files from dev to production sites.
4
15136
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 (List<AssetSummary>)System.Web.Caching.Cache("assetSummary"); }
6
1981
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 harddisc and loading time through the intranet is very long. For example: When I click on a link to subpage1 all the pictures from subpage1 are loaded in browser's memory, then when I click on the subpage2, all pictures from subpage1 that are in...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.