Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Add Contact Control

Ff752560.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 Add Contact control allows users to add contacts to their contact list. It is represented in markup by the add-contact tag.

The following example shows how to insert the Add Contact control into a web page.

<wl:add-contact
   cid="-0123456789"
   group="Contoso Contacts"
   message="Thanks for signing up with Contoso!"
   nickname="A Valued Customer">
</wl:add-contact> 

To allow users to choose which contacts to add, add a control tag without attributes, as the following example demonstrates. When the user clicks the control icon, the Add Contact dialog box is displayed.

<wl:add-contact></wl:add-contact>

The following table lists the attributes for the Add Contact control.

Name Type Required Default Value Description

cid

String

No

none

Sets the CID of the contact to add. If no CID is provided, the user can enter the contact's Instant Message (IM) address.

group

String

No

none

Sets the group to which the contact is added.

message

String

No

none

Sets the default invitation message that is sent to the contact.

nickname

String

No

none

Sets the default nickname that is set for the contact if the user clicks the Add Contact button.

The Add Contact control includes a button for adding a contact and a dialog box that appears when the user clicks the button. This dialog box enables the user to specify information about the contact that they wish to add.

You can use cascading style sheets to control the appearance and behavior of the button. Users cannot add a contact who is already on their contact list. Therefore, the Add Contact button is not visible if the specified CID is already one of the user's contacts.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.