|
ClientSideExtensionsShowDialog(Page, String, Control, Int32, Int32, Int32, Int32, Boolean, Boolean, Boolean, Boolean) Method
|
Shows a modal popup window for the specified web page url when the page has loaded.
Namespace: GSF.Web.UIAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.205-beta
Syntax public static void ShowDialog(
this Page page,
string url,
Control dialogResultHolder = null,
int height = 400,
int width = 600,
int left = 0,
int top = 0,
bool center = true,
bool help = false,
bool resizable = false,
bool status = false
)
<ExtensionAttribute>
Public Shared Sub ShowDialog (
page As Page,
url As String,
Optional dialogResultHolder As Control = Nothing,
Optional height As Integer = 400,
Optional width As Integer = 600,
Optional left As Integer = 0,
Optional top As Integer = 0,
Optional center As Boolean = true,
Optional help As Boolean = false,
Optional resizable As Boolean = false,
Optional status As Boolean = false
)
public:
[ExtensionAttribute]
static void ShowDialog(
Page^ page,
String^ url,
Control^ dialogResultHolder = nullptr,
int height = 400,
int width = 600,
int left = 0,
int top = 0,
bool center = true,
bool help = false,
bool resizable = false,
bool status = false
)
[<ExtensionAttribute>]
static member ShowDialog :
page : Page *
url : string *
?dialogResultHolder : Control *
?height : int *
?width : int *
?left : int *
?top : int *
?center : bool *
?help : bool *
?resizable : bool *
?status : bool
(* Defaults:
let _dialogResultHolder = defaultArg dialogResultHolder null
let _height = defaultArg height 400
let _width = defaultArg width 600
let _left = defaultArg left 0
let _top = defaultArg top 0
let _center = defaultArg center true
let _help = defaultArg help false
let _resizable = defaultArg resizable false
let _status = defaultArg status false
*)
-> unit
GSF.Web.UI.ClientSideExtensions.ShowDialog = function(page, url, dialogResultHolder, height, width, left, top, center, help, resizable, status);
View SourceParameters
- page Page
- Web page that will show the popup window when loaded.
- url String
- Web page url for which the popup windows is to be shown.
- dialogResultHolder Control (Optional)
- Control whose text is to updated with the text returned by the web page displayed in the popup window.
- height Int32 (Optional)
- Height of the popup window.
- width Int32 (Optional)
- Width of the popup window.
- left Int32 (Optional)
- Location of the popup window on X-axis.
- top Int32 (Optional)
- Location of the popup window on Y-axis.
- center Boolean (Optional)
- True if the popup window is to be centered, otherwise False.
- help Boolean (Optional)
- True if help button is to be displayed, otherwise False.
- resizable Boolean (Optional)
- True if the popup window can be resized, otherwise False.
- status Boolean (Optional)
- True if the status bar is to be displayed, 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