The FriendSuggestionsList type exposes the following members.

Constructors

  Name Description
Public method FriendSuggestionsList
Constructor

Methods

  Name Description
Public method AddFriendOrSendRequest
Adds a friend or sends a confirmation request.
Public method AppliedPersonalizationState
Raised after personalization data is applied to the specified System.Web.UI.WebControls.WebParts.WebPart control when requested to do so by the parent System.Web.UI.WebControls.WebParts.WebPartManager control.
(Overrides BasePagedPart..::..AppliedPersonalizationState(WebPart).)
Public method ApplyChanges
Apply web part property changes (Note: Overridden property still needs to be marked as WebPartApplyChangesAttribute).

Note: Marked with WebPartApplyChangesAttribute attribute so it is called from ApplyChanges event in the editor part to refresh the module appearance.

(Overrides BasePart..::..ApplyChanges()()()().)
Public method BindData
Binds and formats user data for display in the main list view control.
Public method CheckUserPrivileges
Checks if the user has delete privileges on this module.
Protected method GetFriendRequestCaption
Formats friend request label caption
Protected method GetFriendRequestMessage
Formats friend request message
Public method InvalidateCache
Invalidates friend suggestions list cache for current user and for invited user.
Protected method IsUserValid
Validates if the user is valid
Public method LoadPostData
Used to implement link button event handling capabilities in late bound scenarios.
Protected method lvItems_OnItemDataBound
OnItemDataBound event handler that binds each item in the part.
Protected method OnFriendConnectCanceled
Raises FriendConnectCanceled event.
Protected method OnFriendConnected
Raises FriendConnected event.
Protected method OnFriendConnecting
Raises FriendConnecting event.
Protected method OnFriendSearch
Raises FriendSearch event.
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Protected method ParseTemplateTags
Parses all template tags and generates a proper HTML based on the current template for a friend list.
Public method RaisePostDataChangedEvent

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPagerTemplate
Gets pager template.
(Defined by ControlExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Public field Static member AddFriendCommand
Add friend command.
Protected field btnCancelRequest
btnCancelRequest control.
Protected field btnSearchPeople
btnSearchPeople control.
Protected field btnSendRequest
btnSendRequest control.
Public field Static member FriendSuggestionsListCacheKey
Friend suggestion list cache key.
Protected field lblEmpty
lblEmpty control.
Protected field lblPersonalMessage
lblPersonalMessage control.
Protected field lblStatusMessage
lblStatusMessage control.
Protected field lvItems
lvItems control.
Protected field pager
pager control.
Protected field plhFriendSuggestions
plhFriendSuggestions control.
Protected field plhSendMessage
plhSendMessage control.
Protected field pnlContainer
pnlContainer control.
Protected field pnlSearchBox
pnlSearchBox control.
Protected field txtRequestMessage
txtRequestMessage control.
Protected field txtSearch
txtSearch control.
Protected field txtweSearch
txtweSearch control.
Protected field upFriendList
upFriendList control.

Properties

  Name Description
Public property AvatarSize
Gets or sets the Avatar size - 1 to 80 for gravatars.
Public property ConfirmationMailContent
Confirmation mail contents. May include placeholders {UserName}, {FriendName}, {PersonalMessage}, {ConfirmationUrl} that will be replaced with appropriate values.
Public property ConfirmationMailSubject
Confirmation mail subject. May include placeholders {UserName} and {FriendName}.
Public property ConfirmationRequired
Gets or sets the value determening if the users has to verify the friend's invitation.
Public property ConfirmationUrl
Confirmation URL to which the user will be redirected after the request is confirmed, may contain placeholder {RequestId} which will be replaced by the friend request ID.
Public property HideIfEmpty
Indicates if this part is to be hidden if empty.
Public property HtmlMail
Indicates if confirmation mail is to be sent in HTML format.
Public property MaxConnectionLevels
Gets or sets the max connection level - the maximum number of levels.
Public property NumberOfFriendSuggestions
Gets or sets the number of friend suggestions.
Public property PageSize
Pager page size.
Public property SelectedUserId
Gets or sets the Selected user Id to whom the friend request will be sent
Public property ShowSearchBox
Gets or sets a value indicating if the search box should be shown or hidden.
Public property SuggestionMode
There are a two different behaviours of this control. When it is in a "paged mode", it shows all users connection. Pager is visible in this mode. When it is in a "shorten mode" it show random users. Pager is not visible in this mode.
Public property TemplatedControl
Templated list view that is used for rendering the "repeatable" section of this control.
Public property UserId
User ID for which the friend list should be shown. By default this property uses Id of the currently logged user.
Public property UserProfileUrl
Gets or sets the URL of the user profile page. If empty, a postback is performed to the same page.
Public property ViewProfileString
Tooltip string that is displayed when a user hovers over the user avatar.

Events

  Name Description
Public event FriendConnectCanceled
Occurs when a friend request is canceled.
Public event FriendConnected
Occurs when a friend request is sent
Public event FriendConnecting
Occurs when a user is connecting with a specific user
Public event FriendSearch
Occurs when user searches for a specific user

See Also