All,
How should we refresh the current aspx frame? I disabled caching using this
command on Page_Load():
Response.Cache.SetCacheability(HttpCacheability.No Cache);
but it didn't help.
The problem is that this page shows the client Logo image, then asks to
upload a new one if required, finally it should show the uploaded picture.
The problem is that it doesn't. If I press F5, then I can see the updated
image, but if I didn't press F5, then I see the previous image.
The aspx page (frame) has the following code:
<asp:Image id="ImageLogo" style="Z-INDEX: 106; LEFT: 145px; POSITION:
absolute; TOP: 163px" runat="server" ImageUrl="Imager.aspx"
BorderColor="LightBlue" BorderStyle="Solid" BorderWidth="1px"></asp:Image>
When I trace in debugger I see that after uploading the child frame
mentioned in this control (ImageUrl="Imager.aspx") is not calling. When I
press F5 to refresh the frame the child frame is called and refresh the
image.
How can we refresh the frame from C# to renew the image?
Just D. 2 2708
It is possible that images will cache, when named the same, even if the page
does not cache. It is one of those cute browser quirks. If the image has a
different name, you should not have a problem, unless your code is set to
make certain decisions prior to checking for the newer image.
You can set up the page to automatically refresh, using a meta tag perhaps,
but you still end up with the same issue if the image is being cached.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside the box!
*************************************************
"Just D." <no@spam.please> wrote in message
news:Mgc1e.855$k57.229@fed1read07... All,
How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.No Cache); but it didn't help.
The problem is that this page shows the client Logo image, then asks to upload a new one if required, finally it should show the uploaded picture. The problem is that it doesn't. If I press F5, then I can see the updated image, but if I didn't press F5, then I see the previous image.
The aspx page (frame) has the following code:
<asp:Image id="ImageLogo" style="Z-INDEX: 106; LEFT: 145px; POSITION: absolute; TOP: 163px" runat="server" ImageUrl="Imager.aspx" BorderColor="LightBlue" BorderStyle="Solid" BorderWidth="1px"></asp:Image>
When I trace in debugger I see that after uploading the child frame mentioned in this control (ImageUrl="Imager.aspx") is not calling. When I press F5 to refresh the frame the child frame is called and refresh the image.
How can we refresh the frame from C# to renew the image?
Just D.
Gregory,
Wow, if this is a "feature" then in this case it's easier to generate the
control name on the fly using the current datetime, maybe it will make the
page cache useless. I think it's possible although takes a few lines of
code.
Thanks for this info, I was thinking that I'm crazy.
Just D.
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:OV**************@TK2MSFTNGP14.phx.gbl... It is possible that images will cache, when named the same, even if the page does not cache. It is one of those cute browser quirks. If the image has a different name, you should not have a problem, unless your code is set to make certain decisions prior to checking for the newer image.
You can set up the page to automatically refresh, using a meta tag perhaps, but you still end up with the same issue if the image is being cached.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************* Think outside the box! ************************************************* "Just D." <no@spam.please> wrote in message news:Mgc1e.855$k57.229@fed1read07... All,
How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache.SetCacheability(HttpCacheability.No Cache); but it didn't help.
The problem is that this page shows the client Logo image, then asks to upload a new one if required, finally it should show the uploaded picture. The problem is that it doesn't. If I press F5, then I can see the updated image, but if I didn't press F5, then I see the previous image.
The aspx page (frame) has the following code:
<asp:Image id="ImageLogo" style="Z-INDEX: 106; LEFT: 145px; POSITION: absolute; TOP: 163px" runat="server" ImageUrl="Imager.aspx" BorderColor="LightBlue" BorderStyle="Solid" BorderWidth="1px"></asp:Image>
When I trace in debugger I see that after uploading the child frame mentioned in this control (ImageUrl="Imager.aspx") is not calling. When I press F5 to refresh the frame the child frame is called and refresh the image.
How can we refresh the frame from C# to renew the image?
Just D.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ZoombyWoof |
last post by:
Hi. I have a Framed page, and in the "main" frame a userchoise is made. In
my "top" frame I have a table containing some status info, the current
logged on user (the username is saved in a SESSION...
|
by: Steve |
last post by:
Hi,
I have a private website for 20 people that is similar to a web email client
like hotmail.
There are two frames, one on the left with links for "New", "History",
"Todays" and a frame on the...
|
by: Judy Ward |
last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
|
by: Charts |
last post by:
I used
HttpContext.Current.Cache To cache data from database.
The code is like that.
public static DataView GetCategories() {
if ( HttpContext.Current.Cache == null ) {...
|
by: Kevin |
last post by:
Hi guys,
I want to refresh some pages every 2 seconds.
however, these html pages are not in my site, they could be any pages from
yahoo.com or msn.com.
I can create a page, which redirect to...
| |
by: Xerxes |
last post by:
Hi,
a newbie question:
How can I refresh a page in a separate frame. For example, when someone
logs in in the main frmae, I want to refresh another frame to display
info differently.
TIA.
|
by: helraizer1 |
last post by:
Hi folks, and folkesses.
I have a piece of java script for a dynamic menu (code below).
<ilayer width=100% height=50 name="dep1" bgColor="#000000">
<layer name="dep2" width=100% height=50>...
|
by: Kaante |
last post by:
Hi,
I basically have two frames on my page, the top one contains users stats and the bottom frame contains the website.
I want to have a message icon on the top frame which would flash once the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |