asp.net - IE8 not refreshing popup window -


IE8 shows an image with some basic javascript manipulators that a popup window is not refreshed

I'm trying to check problems with IE 8 and ASP.NET 3.5, but I'm not fortunate enough with this research.

So what am I doing?

I have a tab container (AJAX control toolkit) that has a gridview on which you select it, it will show a popup with the selected image. I'm passing the image space through a session variable in Firefox 3.5 it always displays different images.

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

  Dim javatext as new system. Text.StringBuilder () session ("ImageLoc") = path javatext ("Top = 100, height =", " 600px, width = 600px ("toolbar = no, location = no, menubar = no '); ") ClientScript.RegisterStartupScript (Me.GetType (), position = no, resizable = yes, scrollbar = Yes, ") javatext.Append," Show Metadia ", javatext.ToString ())  

With different paths this code is in the grid view in two command buttons, and the path to it Depending on whether the user wants a compressed format or original format This is checking the code entering the first time, but not the second.

Page load of showing the image window:

  protected sub page_load (as an object If the sender does not have Me.Load (session ("ImageLoc")) imgPic.ImageUrl = session ("ImageLoc") end if ending sub  

Also the site is also running in IE7 compatibility mode.

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

  Integr = Rand as a new random little numvalue in the form of a slow rand. Next (0, 2000) session ("ImageLoc") = objMedia.PathFull javatext.Append ("& lt; script> window.open ('' & 'ImageViewer.aspx? Something =' & amp; numvalue & Javatext.append ("top = 100, height = 600px, width = 600px, status = no, resizable = yes, scrollbars = yes,") javatext.Append (" Toolbar = no, location = no, menubar = no '); & lt; / script & gt; ClientScript.RegisterStartupScript (Me.GetType), "Show Metadia", javatext.ToString ())  < / Pre> 

And now it changes the picture every time and chooses the new route, so there was a mistake holding the path of the image in the session variable, and it seems that IE8 popups Ndo is necessary to change the path to refresh.

I hope it can help others.

The

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -