|
ClientSideExtensionsShowPopup(Page, String, Int32, Int32, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) Method
|
Shows a popup 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 ShowPopup(
this Page page,
string url,
int height = 400,
int width = 600,
int left = 0,
int top = 0,
bool center = true,
bool resizable = false,
bool scrollbars = false,
bool toolbar = false,
bool menubar = false,
bool location = false,
bool status = false,
bool directories = false
)
<ExtensionAttribute>
Public Shared Sub ShowPopup (
page As Page,
url As String,
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 resizable As Boolean = false,
Optional scrollbars As Boolean = false,
Optional toolbar As Boolean = false,
Optional menubar As Boolean = false,
Optional location As Boolean = false,
Optional status As Boolean = false,
Optional directories As Boolean = false
)
public:
[ExtensionAttribute]
static void ShowPopup(
Page^ page,
String^ url,
int height = 400,
int width = 600,
int left = 0,
int top = 0,
bool center = true,
bool resizable = false,
bool scrollbars = false,
bool toolbar = false,
bool menubar = false,
bool location = false,
bool status = false,
bool directories = false
)
[<ExtensionAttribute>]
static member ShowPopup :
page : Page *
url : string *
?height : int *
?width : int *
?left : int *
?top : int *
?center : bool *
?resizable : bool *
?scrollbars : bool *
?toolbar : bool *
?menubar : bool *
?location : bool *
?status : bool *
?directories : bool
(* Defaults:
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 _resizable = defaultArg resizable false
let _scrollbars = defaultArg scrollbars false
let _toolbar = defaultArg toolbar false
let _menubar = defaultArg menubar false
let _location = defaultArg location false
let _status = defaultArg status false
let _directories = defaultArg directories false
*)
-> unit
GSF.Web.UI.ClientSideExtensions.ShowPopup = function(page, url, height, width, left, top, center, resizable, scrollbars, toolbar, menubar, location, status, directories);
View SourceParameters
- page Page
- Page that will show the popup when loaded.
- url String
- Web page url for which the popup is to be shown.
- height Int32 (Optional)
- Height of the popup.
- width Int32 (Optional)
- Width of the popup.
- left Int32 (Optional)
- Location of the popup on X-axis.
- top Int32 (Optional)
- Location of the popup on Y-axis.
- center Boolean (Optional)
- True if the popup is to be centered, otherwise False.
- resizable Boolean (Optional)
- True if the popup can be resized, otherwise False.
- scrollbars Boolean (Optional)
- True is the scrollbars are to be displayed, otherwise False.
- toolbar Boolean (Optional)
- True if the toolbar is to be displayed, otherwise False.
- menubar Boolean (Optional)
- True if the menu bar is to be displayed, otherwise False.
- location Boolean (Optional)
- True if the address bar is to be displayed, otherwise False.
- status Boolean (Optional)
- True if the status bar is to be displayed, otherwise False.
- directories Boolean (Optional)
- True if the directories buttons (Netscape only) are 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