WebPartChrome.GetWebPartTitleClientID(WebPart) Método

Definição

Obtém a ID do cliente para a célula da tabela que contém o título de um controle WebPart.Gets the client ID for the table cell that contains the title for a WebPart control.

protected:
 System::String ^ GetWebPartTitleClientID(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected string GetWebPartTitleClientID (System.Web.UI.WebControls.WebParts.WebPart webPart);
member this.GetWebPartTitleClientID : System.Web.UI.WebControls.WebParts.WebPart -> string
Protected Function GetWebPartTitleClientID (webPart As WebPart) As String

Parâmetros

webPart
WebPart

O controle que está sendo renderizado no momento.The control currently being rendered.

Retornos

String

Uma cadeia de caracteres que contém a ID do cliente para o título do webPart.A string that contains the client ID for the title of the webPart.

Exceções

webPart é null.webPart is null.

Comentários

O GetWebPartTitleClientID método recupera o valor da ID do cliente para a célula da tabela que contém o título do webPart que está sendo renderizado.The GetWebPartTitleClientID method retrieves the client ID value for the table cell that contains the title of the webPart being rendered.

Um cenário importante no qual o GetWebPartTitleClientID método é usado para obter a ID do cliente da célula de título do webPart é para o Web Parts recurso arrastar e soltar.An important scenario in which the GetWebPartTitleClientID method is used to get the client ID of the title cell of the webPart is for the Web Parts drag-and-drop feature. O método também é útil para outras finalidades de script do lado do cliente.The method is also useful for other client-side scripting purposes. Por exemplo, você pode alterar o título ou o estilo da célula com scripts do lado do cliente, em vez de ter que postar a página de volta para o servidor.For example, you could change the title or the style of the cell with client-side scripting, rather than having to post the page back to the server.

Aplica-se a

Confira também