Hello,
I have a similar problem. In my case I have a iFrame that I load with several versions of an html file. The html file that I load has a different content every time but is has the same name. The problem that I have is that it shows always the first document that I loaded in the iFrame.
When I select the option: 'enable content expiration/expire inmediately' in IIS everything works ok but I want to get the same behavior from my code. I have tried several things but nothing works.
I would appreciate very much any help to solve this problem,
Thanks,
Yas
PS. here are some of the things that I have tried (in page_load):
Response.Expires = -1;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-2);
Response.CacheControl = "";
Response.AppendHeader("Pragma", "no-cache");
myframe.Page.Response.Expires = -1;
myframe.Page.Response.ExpiresAbsolute = DateTime.Now.AddDays(-2);
myframe.Page.Response.CacheControl = "";
myframe.Page.Response.AppendHeader("Pragma", "no-cache");
From
http://www.developmentnow.com/g/8_2004_11_0_0_4579/Turn-off-caching.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com