Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6720103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:10:20+00:00 2026-05-26T09:10:20+00:00

I have a really specific question for which I don’t think I will have

  • 0

I have a really specific question for which I don’t think I will have an answer but… let’s try!
I have an aspx web page that works perfectly with Firefox and Chrome but not on IE9 (don’t feed the troll ^^).

My objective is to allow an asynchronous image upload using ASP AjaxControlToolkit (see http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/asyncfileupload/asyncfileupload.aspx for a demo). When the image asynchronous upload is finished, the UploadedComplete function is called and I put the image in a session variable :

if (fileSizeOk && fileTypeOk)
        Session["image"] = this.AsyncFileUploadLogo.FileBytes;

In parallel I have a handler responsible for returning an image from the session variable :

byte[] buffer = (byte[])context.Session["image"];
context.Response.OutputStream.Write(buffer, 0, buffer.Length);
context.Response.OutputStream.Flush();

Then, in my aspx page, I have an asp:Image field in a UpdatePanel that asks to the handler to get the image every five second :

<asp:UpdatePanel ID="UpdatePanelLogo" runat="server">
    <ContentTemplate>  
        <asp:Image ID="ImageFileUploaded" runat="server" ImageUrl="AsyncImageHandler.ashx" />
        <asp:Timer ID="TimerFileUploaded" Interval="5000" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>

When the user validates the form, I just have to get the variable from the session and I save the image in database with the other values.

Here is my problem: with Firefox and Chrome, the timer provokes the reloading of the image but with IE (even IE9) the image is only displayed after hitting F5. When I put a breakpoint in the handler I can see that it’s never called with IE (maybe a caching mechanism?).

Do you have an idea of ​​how to solve this problem?

Thanks for your answers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:10:21+00:00Added an answer on May 26, 2026 at 9:10 am

    Found the solution using a classic Web dirty trick:

    this.ImageFileUploaded.ImageUrl = "AsyncImageHandler.ashx?p=" + Environment.TickCount.ToString();
    

    I added that line in the PageLoad(), this last is called on each post back triggered by the timer 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I really think the question I have is not too specific, I just don't
This is a really generic question, to which I haven't found a simple answer.
Variations of this question have been asked, but not specific to GNU/Linux and C.
I have a webpage where Firefox 2 displays the font certain, really specific elements,
I have really basic question. How can I get form id by input element
Skip to bottom for question, but first, a little context. So I have been
This is probably a common Objective-C question reported by Java coders, but I don't
I have really no idea why I'm asking this as this a really completely
Im new to iPhone development and I have really taken this to me. I
I've got a program where a lot of classes have really complicated configuration requirements.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.