WebPartChrome.GetWebPartChromeClientID Method

Note: This method is new in the .NET Framework version 2.0.

Gets the client ID for the WebPartChrome object as rendered in a Web page.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

protected:
String^ GetWebPartChromeClientID (
	WebPart^ webPart
)
protected String GetWebPartChromeClientID (
	WebPart webPart
)
protected function GetWebPartChromeClientID (
	webPart : WebPart
) : String

Parameters

webPart

The control currently being rendered.

Return Value

A string that contains the client ID for the WebPartChrome object.

The GetWebPartChromeClientID method gets the client ID of the table that contains the webPart being rendered. The table is the rendered output that corresponds directly to the WebPartChrome object, and is used as a container to apply styles and create a modular layout for the control.

It is useful to get the client ID of the WebPartChrome object for client-side scripting purposes, if you want to change something in the chrome without having to post the page back to the server.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: