Click or drag to resize

ClientSideExtensionsMsgBox(Page, String, String, MsgBoxStyle, Boolean) Method

Shows a windows application style message box when the page has loaded.

Namespace: GSF.Web.UI
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static void MsgBox(
	this Page page,
	string prompt,
	string title,
	MsgBoxStyle buttons,
	bool doPostBack = false
)
View Source

Parameters

page  Page
Page that will show the message box when loaded.
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 Page. 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