Partager via


GetShowExtensibleToolPaneEvent(String) Method

The GetShowExtensibleToolPaneEvent method of the ToolPane class returns a string of JavaScript which, if executed on the client, causes the extensible tool pane to open for the specified Web Part.

Parameters

uniqueID   The unique identifier for the current Web Part.

Return Value

A string of JavaScript which, if executed on the client, causes the extensible tool pane to open for the specified Web Part.

Remarks

In most cases, you need to pass in the Web Part ID surrounded by single quote characters in the uniqueID argument, as shown in the code example below.

Example

The following example demonstrates the use of the GetShowExtensibleToolPaneEvent method to provide the JavaScript code that is executed to open the tool pane when the user clicks a button in the custom Web Part.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security