May 01, 2015, 4:59 PM
[CLOSED] Updating page upon closing a window (codebehind)
I have a page A and B (aspx) , when i am on page A I am creating a new window in codebehind and showing the page B in this new window, i do not have problem so far.
My question is when user closes the Window B , i need to refresh my page A which had been created the window, I need to do this in codebehind, something that window close event can trigger.
This is have i create the window dynamically in page A
My question is when user closes the Window B , i need to refresh my page A which had been created the window, I need to do this in codebehind, something that window close event can trigger.
This is have i create the window dynamically in page A
Public Sub CreateNewWindow(Title As String, iconss As Ext.Net.Icon, ShowUrl As String, Closable As Boolean, AddToPanel As Ext.Net.TabPanel, LoadMsg as String)
Try
Dim contactWin As New Ext.Net.Window
contactWin.ID = "PageUploader"
contactWin.Title = Title
contactWin.Width = Unit.Pixel(600)
contactWin.Height = Unit.Pixel(450)
contactWin.Modal = True
contactWin.AutoRender = False
contactWin.Collapsible = True
contactWin.Maximizable = True
contactWin.Maximized = False
contactWin.Hidden = True
contactWin.Loader = New Ext.Net.ComponentLoader
contactWin.Loader.Url = ShowUrl
contactWin.Loader.Mode = LoadMode.Frame
contactWin.Loader.LoadMask.ShowMask = True
contactWin.Loader.LoadMask.UseMsg = True
contactWin.Loader.LoadMask.Msg = LoadMsg
contactWin.Render(Me.Form)
contactWin.AutoDoLayout = True
contactWin.Show()
Catch ex As Exception
End Try
End Sub
so let s say i have store with the id of "storeAllData" when i close my window i need to be able to access my storeAllData and refresh the data.
Last edited by Daniil; May 12, 2015 at 8:46 PM.
Reason: [CLOSED]