The UserAvatar type exposes the following members.

Constructors

  Name Description
Public method UserAvatar
Constructor.

Methods

  Name Description
Protected method btnClear_Click
Protected method btnSave_Click
Public method DataBind()()()() (Overrides Control..::..DataBind()()()().)
Public method DataBind(Boolean)
Protected method GetValidatorFunctionName
Protected method ImageResize
Raised when image resizing is performed.
Protected method IsValidImage
Validates image to ensure that it is the minimum required size.
Protected method OnAvatarClear
Raises avatar upload event.
Protected method OnAvatarCrop
Raises avatar crop event.
Protected method OnAvatarCropCanceled
Raises avatar crop canceled event.
Protected method OnAvatarCroping
Raises the avatar cropping event.
Protected method OnAvatarSave
Raises on avatar save.
Protected method OnAvatarSaved
Raises avatar saved event.
Protected method OnAvatarSaving
Raises avatar saving event.
Protected method OnAvatarUpload Obsolete.
Raises avatar upload event.
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Protected method SaveAvatar
Saves avatar

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 btnBrowse
btnBrowse control.
Protected field btnClearFooter
btnClearFooter control.
Protected field btnSaveFooter
btnSaveFooter control.
Protected field cropImage
cropImage control.
Protected field gravatar
gravatar control.
Protected field labCaption
labCaption control.
Protected field labInvalidFile
labInvalidFile control.
Protected field plhCropImage
plhCropImage control.
Protected field plhEdit
plhEdit control.
Protected field plhFooter
plhFooter control.
Protected field plhHeader
plhHeader control.
Protected field proxySM
proxySM control.
Protected field rowGravatar
rowGravatar control.
Protected field rowUpload
rowUpload control.
Protected field uploadAvatar
uploadAvatar control.
Protected field validFile
validFile control.
Protected field wndUpload
wndUpload control.

Properties

  Name Description
Public property AvatarSize
Avatar size - 1 to 80 for gravatars.
Public property EnableAvatarCropping
Gets or sets a value indicating if the avatar cropping will be used.
Public property EnablePhotoSizeValidation
Gets or sets a value indicating if the photo size in pixels will be validated. Images below minimum required size are rejected.
Public property GravatarRenderType
Type of the avatar to be rendered - if not set, the web.config settings are used.
Public property ShowBrowsePhoto
Gets or sets a flag if show browse button si shown.
Public property ShowClearButton
Gets or sets a flag if avatar clear button is shown.
Public property UserReputationNewAvatarScore
Gets or sets how much score user gets for new avatar submission.

Events

  Name Description
Public event AvatarClear
Avatar clear event handler.
Public event AvatarCropCanceled
Avatar crop canceled event handler.
Public event AvatarCropping
Avatar cropping event handler.
Public event AvatarSaved
Avatar saved event handler.
Public event AvatarSaving
Avatar saving event handler.
Public event AvatarUpload Obsolete.
Avatar upload event handler.

See Also