MsgBox Web Control Help

MsgBox.ReturnValue Property

Gets the message box return value.

[Visual Basic]
Public ReadOnly Property ReturnValue As String
[C#]
public string ReturnValue {get;}

Remarks

Returns the following message box values:

Message BoxReturn Value
alert(text)"undefined"
confirm(text)"true" if 'OK' pressed; "false" if 'Cancel' pressed.
prompt(text, value)"value" (or new value from message box) if 'OK' pressed; "null" if 'Cancel' pressed.

The Text property is used to set the text string (shown as 'text' in the table above) that appears in the message box. The PromptValue property is used to set the initial return value for a prompt() message box. This value is shown in the text box of the message box (shown as 'value' in the table above).

See Also

MsgBox Class | BWare.UI.Web.WebControls Namespace