バージョン

WindowStateChanged プロパティ

WindowState が変更された後に呼び出される javascript 関数の名前を取得または設定します。
シンタックス
'宣言
 
Public Property WindowStateChanged As String
public string WindowStateChanged {get; set;}
使用例
// 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";
参照