WmlMobileTextWriter.MapClientIDToShortName(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.