The BlockUser type exposes the following members.

Constructors

  Name Description
Public method BlockUser
Constructor.

Methods

  Name Description
Protected method btnBlock_Click
Protected method btnViewProfile_Click
Public method CheckUserPrivileges
Checks if the active user can add or delete other users to the list.
Public method InvalidateCache
Invalidate cache.
Protected method IsUserValid
Checks if the currently selected user is valid (exists in the database, not already added).
Protected method LocalizeControl
Localizes module labels and other settings.
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Protected method OnUserBlocked
Raises UserBlocked event.
Protected method OnUserBlocking
Raises UserBlocking event.
Public method RedirectToProfilePage
Redirects the request to the user profile page.
Public method SetBlockedUser
Adds a user to the blocked user list.

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
Protected field btnBlock
btnBlock control.
Protected field btnViewProfile
btnViewProfile control.
Protected field lblMessage
lblMessage control.
Protected field ltlInfoText
ltlInfoText control.
Protected field pnlActionPanel
pnlActionPanel control.
Protected field pnlSearch
pnlSearch control.
Protected field scriptManagerProxy
scriptManagerProxy control.
Protected field userSearch
userSearch control.

Properties

  Name Description
Public property BlockUserStatus
Used to transfer the status of the block a user operation accross page reloads.
Public property InfoText
Info text.
Public property SearchBoxVisible
Visibility of the search box and view profile button. It can be hidden and some value can be assigned to the info text when the control is to be used for a particular user (usually on the profile page).
Public property TipText
Tip text that is displayed when people search dropdown is opened.
Public property UserId
User ID which is used in scenarios where the control serves to add friends to a single, static user only. The search box should not shown in this type of scenarios.
Public property UserProfileUrl
URL of the user profile page. If empty, a postback is performed to the same page.

Events

  Name Description
Public event UserBlocked
User blocked event handler.
Public event UserBlocking
User blocking event handler.

See Also