WmlMobileTextWriter.MapClientIDToShortName(String, Boolean) Método

Definição

Mapeia a ID do cliente de um controle para um nome curto para ser usado na renderização do formulário.Maps the client ID of a control to a short name to be used in rendering on the form. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

protected public:
 System::String ^ MapClientIDToShortName(System::String ^ clientID, bool generateRandomID);
protected internal string MapClientIDToShortName (string clientID, bool generateRandomID);
member this.MapClientIDToShortName : string * bool -> string
Protected Friend Function MapClientIDToShortName (clientID As String, generateRandomID As Boolean) As String

Parâmetros

clientID
String

A ID do cliente de um controle a ser mapeada.The client ID of a control to map.

generateRandomID
Boolean

Determina se a ID do cliente é criptografada.Determines whether the client ID is encrypted.

Retornos

String

Retorna uma representação de cadeia de caracteres do identificador de cliente do controle.A string representation of the client identifier of the control.

Comentários

Se o identificador de cliente de um controle tiver mais de 16 caracteres, o ASP.NET substituirá um nome curto mapeado exclusivamente.If the client identifier of a control is longer than 16 characters, ASP.NET substitutes a uniquely mapped short name.

Todas as referências ao identificador de cliente na página são mapeadas, resultando na mesma postagem, independentemente do mapeamento.All references to the client identifier on the page are mapped, resulting in the same postback regardless of mapping. MapClientIDToShortName também pode embaralhar as IDs de cliente que devem ser criptografadas por motivos de segurança.MapClientIDToShortName can also scramble client IDs that must be encrypted for security reasons.

Aplica-se a