how to show new image immediately

R

Ravikanth[MVP]

Hi haiwen,

Please try to reload/refresh the page every time by not
caching the page.

Ravikanth
 
H

haiwen

hello, Ravikanth:

thank you so much for your help, could you tell me how to
reload/refresh the page every time.

I use:
using System.Web.Caching;
and add:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
in the override protected void OnInit(EventArgs e).

and I try to add:
Respones.Expires=-1; in the Page_Load();

but the problem still exist, I have to relogin and show
the new image???

Sincerely,

haiwen
 
Y

Yan-Hong Huang[MSFT]

Hello Haiwen,

In order to prohibit a page from caching just place following Meta tag in the head of the html.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

Did I answer your question?

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "haiwen" <[email protected]>
!Sender: "haiwen" <[email protected]>
!References: <[email protected]> <[email protected]>
!Subject: how to show new image immediately
!Date: Mon, 28 Jul 2003 09:59:37 -0700
!Lines: 54
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcNVKaDOQu8Ud4wjRTW2pEgm1E66mA==
!Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.webcontrols:13474
!NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
!
!hello, Ravikanth:
!
!thank you so much for your help, could you tell me how to
!reload/refresh the page every time.
!
!I use:
!using System.Web.Caching;
!and add:
! Response.Cache.SetCacheability(HttpCacheability.NoCache);
!in the override protected void OnInit(EventArgs e).
!
!and I try to add:
!Respones.Expires=-1; in the Page_Load();
!
!but the problem still exist, I have to relogin and show
!the new image???
!
!Sincerely,
!
!haiwen
!
!>-----Original Message-----
!>Hi haiwen,
!>
!>Please try to reload/refresh the page every time by not
!>caching the page.
!>
!>Ravikanth
!>
!>
!>>-----Original Message-----
!>>hello, everyone:
!>>
!>>i have a web page(w1) with one image control and another
!>>page (w2) can update the image file on the server
!>>directory. but after I change the image file by w2 to
!>>different image while the file name without change(i
!>have
!>>to keep the file name intactness).
!>>
!>>the problem is: after i open the w1, the image control
!>>will show the same image even I already change the file
!>>content in the server directory untill next login.
!>>
!>>could anyone help me to figure it out. I do appreciate
!>>your help.
!>>
!>>sincerely,
!>>
!>>haiwen
!>>.
!>>
!>.
!>
!
 
H

haiwen

hello, yanhong:

It still doesn't work, on the computer explorer I can make
sure the image file change immediately, but on my
application, it still keep the old image. I have to logout
the application and login in again then I can show the new
image file.

could you or anyone else help me to figure it out?

Thanks a lot,

haiwen
-----Original Message-----
Hello Haiwen,

In order to prohibit a page from caching just place
following Meta tag in the head of the html.
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top