|
ClientSideExtensionsMsgBox(Control, String, String, MsgBoxStyle, Boolean) Method
|
Shows a windows application style message box when the control is clicked.
Namespace: GSF.Web.UIAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.230-beta
Syntaxpublic static void MsgBox(
this Control control,
string prompt,
string title,
MsgBoxStyle buttons,
bool doPostBack = false
)
<ExtensionAttribute>
Public Shared Sub MsgBox (
control As Control,
prompt As String,
title As String,
buttons As MsgBoxStyle,
Optional doPostBack As Boolean = false
)
public:
[ExtensionAttribute]
static void MsgBox(
Control^ control,
String^ prompt,
String^ title,
MsgBoxStyle buttons,
bool doPostBack = false
)
[<ExtensionAttribute>]
static member MsgBox :
control : Control *
prompt : string *
title : string *
buttons : MsgBoxStyle *
?doPostBack : bool
(* Defaults:
let _doPostBack = defaultArg doPostBack false
*)
-> unit
GSF.Web.UI.ClientSideExtensions.MsgBox = function(control, prompt, title, buttons, doPostBack);
View SourceParameters
- control Control
- Control that will show the message box when clicked.
- prompt String
- Text that is to be displayed in the message box.
- title String
- Title of the message box.
- buttons MsgBoxStyle
- Buttons to be displayed in the message box.
- doPostBack Boolean (Optional)
- True if a post-back is to be performed when either OK, Retry, or Yes buttons are clicked in the message box, otherwise False.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Control. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also