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
!>>.
!>>
!>.
!>
!