All,
How should we refresh the current aspx frame? I disabled caching using this
command on Page_Load():
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);
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="Image r.aspx"
BorderColor="Li ghtBlue" BorderStyle="So lid" BorderWidth="1p x"></asp:Image>
When I trace in debugger I see that after uploading the child frame
mentioned in this control (ImageUrl="Imag er.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 2717
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@fed1rea d07... All,
How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache. SetCacheability (HttpCacheabili ty.NoCache); 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="Image r.aspx" BorderColor="Li ghtBlue" BorderStyle="So lid" BorderWidth="1p x"></asp:Image>
When I trace in debugger I see that after uploading the child frame mentioned in this control (ImageUrl="Imag er.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.netNoS pamM> wrote in
message news:OV******** ******@TK2MSFTN GP14.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@fed1rea d07... All,
How should we refresh the current aspx frame? I disabled caching using this command on Page_Load(): Response.Cache. SetCacheability (HttpCacheabili ty.NoCache); 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="Image r.aspx" BorderColor="Li ghtBlue" BorderStyle="So lid" BorderWidth="1p x"></asp:Image>
When I trace in debugger I see that after uploading the child frame mentioned in this control (ImageUrl="Imag er.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 variable) and some
stuff like that. If I in the "main" frame change user (its a drop down
list with choices from a MySQL DB) I would like to reflect that in the
status row in the "top" frame. If I do a "header( Location blablabla )",
that page is...
|
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 right with a table for viewing the contents of
these messages. The left pane checks back with the server every few seconds
to see if any new messages need to be processed and updates count
accordingly.
|
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 authentication and think I know how to accomplish this part. My problem is that the top frame does not reload to get to the "If User.Identity.IsAuthenticated Then". Please don't tell me I shouldn't be using frames; this is a school assignment and the...
|
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 ) {
HttpContext.Current.Cache = GetCategoriesFromDB();
}
return (DataView)HttpContext.Current.Cache;}
|
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 public internet html page, but how
can I do this in a loop?
do I need to write a console application to make it work?
thanks
| |
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>
</layer>
</ilayer>
<div align="center" id="describe" style="background:#efefef;" onMouseover="clear_delayhide()" onMouseout="resetit(event); refresh();"></div>
|
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 user gets a new message. Obviously I would have one message icon which doesn't flash and another which does.
Right now i refresh the top frame every 30 seconds so that the stats update. But is there an easier way to refresh? I mean right now 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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |