Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: parent window is blank when child window opens
nikesh

From: Mumbai, USA
Posts: 22
Member Since: 02/03/05
posted May 16, 2005 7:59 AM

Hi

My page has the livedatagrid. One of the column is livebutton. Following code is written in itemcommand which is executed when button is clicked:

Private Sub LiveDataPresentation_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles LiveDataPresentation.ItemCommand
    Dim popupScript As String
    If e.CommandName = "SetUp" Then

      popupScript = "<script language='javascript'>" & _
       "W = screen.width-10;" & _
       "H = screen.height-55;" & _
        "window.open('SetupPresentation.aspx?LiveWebSessionId=" & e.Item.Cells(5).Text & "&Slidepath=" + e.Item.Cells(6).Text & "', 'ClientSlideShow', " & _
       "'Height='+H+',width='+W+',top=0,left=0,scrollbars=1,resizable =1')" & _
       "</script>"
      Response.Write(popupScript)


    End If

End Sub


This opens up the new window, however the parent window becomes completely blank (white ). It does not show the datagrid also which had the button to open the child window. If we close the page using "Cross" on the page, we do not see any thing on the parent window. However if the child window has a link/button and in the code of this button if we reload the parent page & close the child window then the parent window shows the control.

Also if you close the child window by "Cross" on the window and try to refresh the parent page then again it opens up the child window.

How do i solve ? i.e. after the child window is opened up the parent should show the contents of the page? If the user closes the window using "Cross" on the window then also the parent page should show the content?

Nikesh Shah
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 17, 2005 12:21 PM

Is the line "Response.Write(popupScript)" executed in response to a callback?

Also, do either the main page or the popup page contain a running LiveTimer?
nikesh

From: Mumbai, USA
Posts: 22
Member Since: 02/03/05
posted May 18, 2005 3:49 AM

Their is no timer on this page. But i am using livedatagrid and the the procedure given below is associated to livedatagrid. Their are boundbutton column on the livedatagrid. On click of this button following procedure is executed.

Nikesh Shah
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted May 18, 2005 9:47 AM

I still don't have enough info to reproduce this. It may be easier if you could just send me your project. Please, reduce the code down to the simplest possible which reproduces the problem and send it to support@dart.com "ATTN Jeff".
nikesh

From: Mumbai, USA
Posts: 22
Member Since: 02/03/05
posted May 23, 2005 1:03 AM

Send the email containing the project files and the descriptoin of the problem.
handoko

From: singapore, Singapore
Posts: 1
Member Since: 07/14/06
posted July 14, 2006 1:00 AM

Any solution for this problem ? I have this exact same problem that I tried to fix for more than 1 week.

Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted July 20, 2006 10:26 AM

Can you post your applicable code for us to test. As far as I know, there should be no issues.
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX