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

  • Home
  • SEARCH
  • 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 293043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:14:08+00:00 2026-05-12T06:14:08+00:00

IE 8 is not refreshing a popup window that shows an image with some

  • 0

IE 8 is not refreshing a popup window that shows an image with some basic javascript manipulator.

I am trying to investigate issues with IE 8 and ASP.net 3.5 but I am not having much luck with that research.

So what I am doing?

I have a tab container(Ajax control toolkit) that holds a gridview that when you select it, it will show a popup with the selected image. I am passing the image location through a Session variable. In firefox 3.5 it always displays the different images.

Here is the code being inserted into the page for javascript:

Dim javatext As New System.Text.StringBuilder()
Session("ImageLoc") = Path
javatext.Append("<script>window.open('" & "ImageViewer.aspx" & "',null,'left=400,")
javatext.Append(" top=100,height=600px, width=600px, status=no, resizable= yes, scrollbars= yes,")
javatext.Append("toolbar= no,location= no, menubar= no');</script>")

ClientScript.RegisterStartupScript(Me.GetType(), "showTreatMedia", javatext.ToString())

This code with different paths is in two command buttons in the grid view. And the path differs depending on if the user wants a compressed format or the original format. Checking the code it enters the first time but not the second.

Page load of the showing image window:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsNothing(Session("ImageLoc")) Then
            imgPic.ImageUrl = Session("ImageLoc")
        End If
End Sub

Also the site is running in IE7 compatibility mode.

  • 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-12T06:14:08+00:00Added an answer on May 12, 2026 at 6:14 am

    Ok, what happened was that I was using the same URL all the time. I added this code:

    Dim rand As New Random
    Dim numvalue As Integer = rand.Next(0, 2000)
    Session("ImageLoc") = objMedia.PathFull
    javatext.Append("<script>window.open('" & "ImageViewer.aspx?something=" & numvalue & "',null,'left=400,")
    javatext.Append(" top=100,height=600px, width=600px, status=no, resizable= yes, scrollbars= yes,")
    javatext.Append("toolbar= no,location= no, menubar= no');</script>")
    
    ClientScript.RegisterStartupScript(Me.GetType(), "showTreatMedia", javatext.ToString())
    

    And now it changes the picture every time and picks up the new path. So the holding the path of the image in the session variable was a mistake. And it seems IE8 needs for the path to change to refresh the popup window.

    Hope this can help other people.

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

Sidebar

Related Questions

The function window.opener.location.reload(); is working fine with IE but not refreshing parent page in
I understand the reason behind not auto refreshing your .dbml (Linq2Sql), .edmx (Linq2Entities) or
(Not related to versioning the database schema) Applications that interfaces with databases often have
Not that I'm doing something like that, but I am kind of interested how
Not too practical maybe, but still interesting. Having some abstract question on matrix multiplication
I am opening one Popup window on Button Click in main window, it is
I have read many topics about UITableViews not refreshing on iPhone, but couldn't find
I have a login form that I am trying to handle with ajax. At
Hi i need help with refreshing div, but not auto refresh! I have my
Not very technical, but... I have to implement a bad words filter in a

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.