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

How to refresh image?

P: n/a
Hello everyone,

does anyone know, how I can refresh a webform image by pressing an
asp.net-button?

I have a statistics-jpg which gets updated every 5 minutes and want to
provide a manual refresh button. My initial try was to simply do a post-back
when pressing the button and adding

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" content="no-cache">

to the page. However this does not suffice: if the button is pressed a
chached image appears. If I press F5 I get the updated picture.

Any ideas on this?

Thanks in advance
Rainer Sinsch
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Rainer,

You can trick browser by adding a random query parameter to the image url.

Eliyahu

"Rainer Sinsch" <no****@please.com> wrote in message
news:cs**********@mail1.sbs.de...
Hello everyone,

does anyone know, how I can refresh a webform image by pressing an
asp.net-button?

I have a statistics-jpg which gets updated every 5 minutes and want to
provide a manual refresh button. My initial try was to simply do a post-back when pressing the button and adding

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" content="no-cache">

to the page. However this does not suffice: if the button is pressed a
chached image appears. If I press F5 I get the updated picture.

Any ideas on this?

Thanks in advance
Rainer Sinsch

Nov 19 '05 #2

P: n/a
Wow, ultra fast answer. And it works ;) Thank you very much.

/Rainer Sinsch

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Oz****************@tk2msftngp13.phx.gbl...
Rainer,

You can trick browser by adding a random query parameter to the image url.

Eliyahu

"Rainer Sinsch" <no****@please.com> wrote in message
news:cs**********@mail1.sbs.de...
Hello everyone,

does anyone know, how I can refresh a webform image by pressing an
asp.net-button?

I have a statistics-jpg which gets updated every 5 minutes and want to
provide a manual refresh button. My initial try was to simply do a

post-back
when pressing the button and adding

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" content="no-cache">

to the page. However this does not suffice: if the button is pressed a
chached image appears. If I press F5 I get the updated picture.

Any ideas on this?

Thanks in advance
Rainer Sinsch


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.