MsgBox.CreateMessageScript Method
This function is called when one of the Execute
methods is called. It outputs the following script functionality
when the web form is rendered:
-
Creates the required jscript to show the message box, using the
MessageBoxType and PromptValue properties.
-
Sets the value of a generated hidden input field to receive the
message box result.
-
Creates script to generate a form postback once the message box has been
dismissed.
[Visual Basic]Private Sub CreateMessageScript( _
ByVal
Msg As
String, _
ByVal
PromptValue As
String _
)
Parameters
- Msg
- The message string to display in the message box.
- PromptValue
- The string displayed in the text portion
of a prompt() message box.
Remarks
PromptValue is only used for prompt() message boxes and is ignored in
all other cases.
See Also
MsgBox Class | BWare.UI.Web.WebControls Namespace