mikewilson55
asked on
popup window is minimizing when it opens
I have a pop window to display a note but it appears and then minimizes as the page behind seems to be doing a postback. I have traced the code and the postback occurs before the popup window code runs but visibly the window appears to redraw after the popup appears. Here's my code under button to call poopup.
Protected Sub wgNote_ClickCellButton(ByV al sender As Object, ByVal e As Infragistics.WebUI.UltraWe bGrid.Cell EventArgs) Handles wgNote.ClickCellButton
Dim Value As String
Dim FacilityId As String
Value = e.Cell.Row.Cells(1).Value
facilityid = e.Cell.Row.Cells(2).Value
System.Web.HttpContext.Cur rent.Respo nse.Write( "<SCRIPT LANGUAGE=""JavaScript"">" & vbCrLf)
System.Web.HttpContext.Cur rent.Respo nse.Write( "my_window =window.op en('" & "NotePopupFacility.aspx?No teID=" & Value & "&Facilityid=" & FacilityId & "', '','width=600,height=450,r esizable=n o,status=n o,menubar= no,scrollb ars=yes,to olbar=no') ;")
System.Web.HttpContext.Cur rent.Respo nse.Write( "</SCRIPT> ")
End Sub
Protected Sub wgNote_ClickCellButton(ByV
Dim Value As String
Dim FacilityId As String
Value = e.Cell.Row.Cells(1).Value
facilityid = e.Cell.Row.Cells(2).Value
System.Web.HttpContext.Cur
System.Web.HttpContext.Cur
System.Web.HttpContext.Cur
End Sub
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is adviceable to separate the javascript code and server script code for easier maintainability and reuseable. However, i'm glad you find the solution that you need here. Cheers.