Display Name Control

Ff751994.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

The Display Name control shows the display name for a contact. It is represented in markup by the display-name tag.

The following example shows how to insert the Display Name control into a web page.

<wl:display-name
   cid="-0123456789">
</wl:display-name>

The following table lists the attributes for the Display Name control.

Name Type Required Default Value Description

cid

String

Yes

none

Sets the CID of the contact. To display data for the signed-in user, use a value of $user.

default-name

String

No

none

Sets a default value that is shown when the display name is unavailable.

editable

Boolean

No

true

Sets whether the display name is editable. This is applicable only if the CID is set to $user. Otherwise, it is ignored. If this attribute is set to true, the linked attribute is ignored.

linked

Boolean

No

true

Sets whether the display name is a hyperlink to the user's profile page.

The following screen shot shows the Display Name control as it might appear with several other UI controls.

Ff751994.6d9ee68e-5af0-47fb-b84a-9d13c1d5ee1d(en-us,MSDN.10).jpg
Show: