May 30, 2008, 8:15 AM
Problem opening dynamically created window from within an existing window.
Hi,
This is my senario.
I have a aspx page called default.aspx and in this page i have a placeholder control that i used to dynamically load the window control to.
I hope im making sense here but this is actually want but somehow i cant seem to do it.
Is this actually possible.
Thanks in advance.
This is my senario.
I have a aspx page called default.aspx and in this page i have a placeholder control that i used to dynamically load the window control to.
Public Sub Form(ByVal ID As String, _
ByVal Title As String, _
ByVal Page As String, _
ByVal Width As Integer, ByVal Height As Integer, _
ByVal PlaceHolder1 As PlaceHolder, _
ByVal ControlID As String, _
Optional ByVal Modal As Boolean = False, _
Optional ByVal Maximizable As Boolean = True, _
Optional ByVal Minimizable As Boolean = True, _
Optional ByVal Resizable As Boolean = True)
Dim newWin As New Coolite.Web.UI.Window
Dim maximize As ClientEvent = New ClientEvent
maximize.Handler = "function (el){ var view = Ext.getBody().getViewSize(); el.setSize(view.width, view.height); }"
With newWin
.ID = ID
.Title = Title
.Width = Unit.Pixel(Width)
.Height = Unit.Pixel(Height)
.AutoLoad = Page
.Minimizable = Maximizable
.Maximizable = Minimizable
.Collapsible = True
.ClientEvents.Maximize = maximize
.Modal = Modal
.Resizable = Resizable
.CloseAction = CloseAction.Hide
.AnimateTarget = ControlID
.Show()
End With
PlaceHolder1.Controls.Add(newWin)
End Sub
My problem arises when i want to open another window from the previously created window. But i dont want to open it within that window but i want to load to open it in in my default.aspx page.I hope im making sense here but this is actually want but somehow i cant seem to do it.
Is this actually possible.
Thanks in advance.