473,378 Members | 1,370 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,378 software developers and data experts.

ASP.NET Image Caching Problem (How to Disable it?)

Hi There!

I'm developing a web project that requires to produce charts off the
database and output it as image and presented to the user in a HTML
document. (NOTE: Image is not directly streamed, but just linked in HTML
output).

The problem is, when user want to see the graph by changing parameters, they
always have to click refresh to see the updated graph image. Although this
problem doesn't occur on the local server.

So I'm just wondering, how to turn off the image caching in my ASP.NET
project so that users don't need to click Refresh every time they change a
parameter to see a different chart image?

Many thanks!

Mike

Nov 18 '05 #1
2 6932
Make sure it is cache issue.

http://support.microsoft.com/default...b;en-us;811431

chanmm

"Mike Sobeiski" <mi****@nospam.com> wrote in message
news:OY**************@tk2msftngp13.phx.gbl...
Hi There!

I'm developing a web project that requires to produce charts off the
database and output it as image and presented to the user in a HTML
document. (NOTE: Image is not directly streamed, but just linked in HTML
output).

The problem is, when user want to see the graph by changing parameters, they always have to click refresh to see the updated graph image. Although this
problem doesn't occur on the local server.

So I'm just wondering, how to turn off the image caching in my ASP.NET
project so that users don't need to click Refresh every time they change a
parameter to see a different chart image?

Many thanks!

Mike

Nov 18 '05 #2
I had a similar problem. But I think it's more a client side issue. Anyway
....

.... I solved it with a rather unusual way. Generate a unique ID string from
letters and/or numbers, and append it to the image as a HTTP GET parameter.
Like:

http://hostname/path/image.gif?uid=4235236

Make sure it changes all the time. A bunch of random numbers should do the
trick. And no more caching problems. (actually, I used it with an .aspx
page, that generate it's output everytime, but it doesn't matter). If it
really is a normal image, a parameter like in the example link above will
not disrupt the download.

-Lenard
"Mike Sobeiski" <mi****@nospam.com> wrote in message
news:OY**************@tk2msftngp13.phx.gbl...
Hi There!

I'm developing a web project that requires to produce charts off the
database and output it as image and presented to the user in a HTML
document. (NOTE: Image is not directly streamed, but just linked in HTML
output).

The problem is, when user want to see the graph by changing parameters, they always have to click refresh to see the updated graph image. Although this
problem doesn't occur on the local server.

So I'm just wondering, how to turn off the image caching in my ASP.NET
project so that users don't need to click Refresh every time they change a
parameter to see a different chart image?

Many thanks!

Mike

Nov 18 '05 #3

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

Similar topics

1
by: Grunt | last post by:
Hi, I have been trying to put together a rotating banner. the code works but I am having a problem with the caching of the banner images. no matter what I try the page is constantly reloading the...
1
by: vip001 | last post by:
Hello This is the site developed for one of my client 'Direct2deal.com' (http://www.direct2deal.com) This site has lots of images and hence downloading time of home page i much more..Is there...
7
by: Nathan Sokalski | last post by:
I have been trying to find a way to prevent the images on my site from being cached on the user's machine. I want to avoid this because the images used in an Image control often change, yet have...
1
by: Kamyar Souri | last post by:
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...
4
by: Jake | last post by:
Does cookieless session state (with the sessionid embedded into the url) interfere with the browser's retrieval of cached images from one session to the next? Does the sessionid embedded into the...
1
by: Giggle Girl | last post by:
Hello, I am helping to design a web application that uses 167 little icons on various pages in a framed environment. As is, the app loads each icon on a page by page basis, and if an image...
9
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
I'm working on a litigation web app where users will review images of case documents. One of the requirements is that we either prevent the images from being cached on the clients machine (in temp...
1
by: Sems | last post by:
Hi I have a masterpage that has an image in it. Whats the best way to cach the image to stop it from being reloaded each time a new page is displayed? Will the masterpage take care of this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.