[CLOSED] Updating page upon closing a window (codebehind)

  1. #1

    [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
     
     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]
  2. #2
    Hi @ebeker,

    There is no a possibility to access a parent page from its child page in code behind. So, you'll need to do that via JavaScript.

    There is a Window's Close event that you could listen to client side and reload the parent page.

    To access the parent page from its child page, I would recommend to define .ParentRef = "parentExtNetComponent" for the loader. Then you will be able to access the parent Ext.NET Window component from the child Window by the parentExtNetComponent reference.
  3. #3
    Thank you i will try an update the results.

Similar Threads

  1. Replies: 2
    Last Post: Feb 21, 2015, 11:10 AM
  2. Closing Window from child page
    By stebag in forum 2.x Help
    Replies: 5
    Last Post: Dec 12, 2013, 4:12 PM
  3. Replies: 2
    Last Post: Nov 05, 2013, 2:26 AM
  4. [CLOSED] Problem: Closing Maximized Window will loose parent window scrollbar
    By tlfdesarrollo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2012, 8:51 PM
  5. Replies: 7
    Last Post: Feb 09, 2012, 11:17 AM

Posting Permissions