locked
IE not loading all images in a page with large no: of images(~ 300+ images) RRS feed

  • Question

  • I have a webpage which is trying to render more than 300 images, but IE is not rendering all the images. I have detailed the exact scenario below.

    I have a aspx page with a asp:Panel. I'm adding new aspx pages to this panel,

    Image image = new Image();          
    StringBuilder url = new StringBuilder();
    url.Append(string.Format("ImageDisplay.aspx?Sample={0}", 1));
    image.ImageUrl = url.ToString();
    
    HtmlGenericControl div = new HtmlGenericControl("div");
    div.Controls.Add(image);
    this.pnlImages.Controls.Add(div);

    the second aspx page writes the image to the response,

    Response.Clear();
    Response.BufferOutput = true;
    
    string fileName = "..\\Sample.jpeg";
    Bitmap image = new Bitmap(fileName);
    image.Save(Response.OutputStream, ImageFormat.Jpeg);
    
    image.Dispose();
    Response.Flush();

    likewise I'm adding more than 300 images.

    IE is not rendering all the images properly, most of the images are getting broken and shows as 'X' sign. While the same page loads perfectly fine in Firefox and Chrome. I'm not able to find the cause of the issue since it only happens in IE. Could someone please help me with this.

    Tuesday, February 4, 2014 11:12 AM

Answers

  • Hi,

    Please post to an asp.net forum....if possible include a link to your website with your question.

    this forum is for questions about IEAK and GPO for system administrators of domain networks....

    tip... use response.end I/o response flush....

    view... the page-source from IE (View-source) or use the Find tool on the IE Developer tool to inspect the scr value of img tags and the base href value (if used)...

    the optimal load time for web pages is considered to be 3 seconds...

    consider reducing the number and size of images, and external stylesheets and libraries on your web pages. (www.webpagetests.org)


    Rob^_^

    • Proposed as answer by 网游 - wang'you Wednesday, February 5, 2014 1:37 AM
    • Marked as answer by Cloud_TS Tuesday, February 18, 2014 2:58 AM
    Wednesday, February 5, 2014 1:37 AM