| Visual Basic (Declaration) | |
|---|---|
Public Property OnClosed As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebDialogBoxClientSideEvents Dim value As String instance.OnClosed = value value = instance.OnClosed | |
| C# | |
|---|---|
public string OnClosed {get; set;} | |
Developers can easily hook the OnClosed event to a function in javascript which will be fired when the dialog box has been closed as the result of button click. The OnClosed event will be mainly used to perform applications logic based on the pressed button which represented into the DialogResult parameter.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2