Feb 27, 2012, 10:42 PM
[CLOSED] Unable to close dynamic Window
Hi,
I am creating a dynamic window on Page1.aspx through the function "renderViewRepWin" which redirects to another page (Page2.aspx).
Page2.aspx in turn open's its own window to display a report.
I would like to close the dynamic window on Page1.aspx after the redirect to Page2.aspx.
Thanks
Ravi Swaminathan
I am creating a dynamic window on Page1.aspx through the function "renderViewRepWin" which redirects to another page (Page2.aspx).
Page2.aspx in turn open's its own window to display a report.
I would like to close the dynamic window on Page1.aspx after the redirect to Page2.aspx.
Private Shared Function renderViewRepWin(ByVal recid As String, ByVal prodid As String, ByVal WindowsID As String, WindowTitle As String)
Using wViewReport As New NetAlias.Window() With {.ID = WindowsID, .Width = "800", .Header = True, .Title = WindowTitle, .CloseAction = NetAlias.CloseAction.Close, .Height = "600"}
With wViewReport
'Create a 'Back' for Panel
Dim tBar As New NetAlias.Toolbar()
Dim bBack As New NetAlias.Button("Back", "history.back(-1)") With {.Icon = NetAlias.Icon.ArrowLeft}
tBar.Add(bBack)
Dim bPrinter As New NetAlias.Button("Print", String.Format("printSelection(document.getElementById('{0}_IFrame'));return false;", WindowsID)) With {.Icon = NetAlias.Icon.Printer}
tBar.Add(bPrinter)
.TopBar.Add(tBar)
With .Listeners
With .Close
.Handler = "myGrid.getStore().reload(null);"
End With
End With
.AutoLoad.Url = "Page2.aspx"
.AutoLoad.Method = NetAlias.HttpMethod.POST
.AutoLoad.Mode = NetAlias.LoadMode.IFrame
.AutoLoad.Params.Add(New NetAlias.Parameter("RecordID", recid))
.AutoLoad.Params.Add(New NetAlias.Parameter("ProdID", prodid))
.Render()
.Hidden = True
End With
End Using
End Function
I also tried Redirecting to Page2.aspx (using Ext.Net.X.Redirect) without having to open a dynamic window as above, but I could not get the code to do a postback to reload Page1.aspx.Thanks
Ravi Swaminathan
Last edited by Daniil; Feb 28, 2012 at 2:35 PM.
Reason: [CLOSED]