// The client event WindowStateChanged takes two parameters sender and e // sender is the object which is raising the event // e is the PostBackEventArgs function WDW1_WindowStateChanged(sender, e) { var wdw = $find("WebDialogWindow1"); //Gets the state of WebDailogWindow var windowState = wdw.get_windowState(); if (windowState == 1) { window.status = "WebDialogWindow Minimized"; } else if (windowState == 2) { window.status = "WebDialogWindow Maximized"; } else if (windowState == 3) { window.status = "WebDialogWindow Closed"; } else { window.status = "WebDialogWindow Restored"; } }
Me.WebDialogWindow1.ClientEvents.WindowStateChanged = "WDW1_WindowStateChanged"
this.WebDialogWindow1.ClientEvents.WindowStateChanged = "WDW1_WindowStateChanged";