ערוך

שתף באמצעות


WmlMobileTextWriter.MapClientIDToShortName(String, Boolean) Method

Definition

Maps the client ID of a control to a short name to be used in rendering on the form. This API is obsolete. 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

Parameters

clientID
String

The client ID of a control to map.

generateRandomID
Boolean

Determines whether the client ID is encrypted.

Returns

A string representation of the client identifier of the control.

Remarks

If the client identifier of a control is longer than 16 characters, ASP.NET substitutes a uniquely mapped short name.

All references to the client identifier on the page are mapped, resulting in the same postback regardless of mapping. MapClientIDToShortName can also scramble client IDs that must be encrypted for security reasons.

Applies to

See also