Class UploadAttachments
Legacy attachment-list control compatibility wrapper built on top of AjaxAttachments.
Inheritance
UploadAttachments
Assembly: AjaxUploader.dll
Syntax
public class UploadAttachments : AjaxAttachments, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackDataHandler
Constructors
UploadAttachments()
Declaration
public UploadAttachments()
Properties
Declaration
public AttachmentItemBehavior ActionButtonBehavior { get; set; }
Property Value
ActionButtonText
Declaration
public string ActionButtonText { get; set; }
Property Value
Declaration
public string ActionHeaderText { get; set; }
Property Value
AttachmentTRStyle
Declaration
public string AttachmentTRStyle { get; set; }
Property Value
AttachmentTableStyle
Declaration
public string AttachmentTableStyle { get; set; }
Property Value
CustomProvider
Gets or sets a custom provider used to surface externally managed attachments.
Declaration
public IAttachmentProvider CustomProvider { get; set; }
Property Value
DropZoneID
Declaration
public string DropZoneID { get; set; }
Property Value
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public TableItemStyle HeaderRowStyle { get; }
Property Value
HideNoItemTable
Declaration
public bool HideNoItemTable { get; set; }
Property Value
Gets the underlying legacy browse button control.
Declaration
[Browsable(false)]
public Button InsertButton { get; }
Property Value
Gets the style applied to the legacy browse button.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public Style InsertButtonStyle { get; }
Property Value
InsertText
Gets or sets the caption of the legacy attachment browse button.
Declaration
public string InsertText { get; set; }
Property Value
ItemCellStyle
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public TableItemStyle ItemCellStyle { get; }
Property Value
ItemCheckStyle
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public Style ItemCheckStyle { get; }
Property Value
ItemTemplate
Gets or sets the custom template used to render legacy attachment items.
Declaration
[TemplateContainer(typeof(AttachmentItem))]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate ItemTemplate { get; set; }
Property Value
ItemTemplatePosition
Declaration
public AttachmentItemTemplatePosition ItemTemplatePosition { get; set; }
Property Value
Items
Gets the legacy attachment item collection.
Declaration
[Browsable(false)]
public AttachmentItemCollection Items { get; }
Property Value
ManualStartUpload
Declaration
public bool ManualStartUpload { get; set; }
Property Value
MultipleFilesUpload
Declaration
public bool MultipleFilesUpload { get; set; }
Property Value
Declaration
public AttachmentItemBehavior RemoveButtonBehavior { get; set; }
Property Value
RemoveButtonText
Declaration
public string RemoveButtonText { get; set; }
Property Value
Declaration
public string RemoveHeaderText { get; set; }
Property Value
Declaration
public bool ShowActionButtons { get; set; }
Property Value
ShowCheckBoxes
Declaration
public bool ShowCheckBoxes { get; set; }
Property Value
ShowFileIcons
Declaration
public bool ShowFileIcons { get; set; }
Property Value
ShowQueueTable
Declaration
public bool ShowQueueTable { get; set; }
Property Value
Declaration
public bool ShowRemoveButtons { get; set; }
Property Value
ShowRemoveButtonsAsText
Declaration
public bool ShowRemoveButtonsAsText { get; set; }
Property Value
Declaration
public bool ShowTableHeader { get; set; }
Property Value
Declaration
public string TableHeaderTemplate { get; set; }
Property Value
TableStyle
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public TableStyle TableStyle { get; }
Property Value
Declaration
public string TemplateHeaderText { get; set; }
Property Value
UploadType
Declaration
public UploadType UploadType { get; set; }
Property Value
ValidateOption
Gets the legacy attachment validation settings.
Declaration
[PersistenceMode(PersistenceMode.InnerProperty)]
public UploaderValidateOption ValidateOption { get; }
Property Value
Methods
AddCustomAttachment(Guid)
Declaration
public void AddCustomAttachment(Guid fileguid)
Parameters
| Type |
Name |
Description |
| Guid |
fileguid |
|
DeleteAllAttachments()
Deletes every attachment in the current collection.
Declaration
public void DeleteAllAttachments()
DeleteAttachment(int)
Deletes the attachment at the specified index.
Declaration
public void DeleteAttachment(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
|
DeleteUncheckedAttachments()
Deletes all unchecked attachments.
Declaration
public void DeleteUncheckedAttachments()
GetAttachmentCount()
Returns the number of currently visible attachment items.
Declaration
public int GetAttachmentCount()
Returns
GetItemsTable()
Gets the internal table-like container used by the legacy control.
Declaration
public WebControl GetItemsTable()
Returns
OnAttachmentActionClicked(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentActionClicked(AttachmentItemEventArgs args)
Parameters
OnAttachmentAdded(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentAdded(AttachmentItemEventArgs args)
Parameters
OnAttachmentCheckChanged(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentCheckChanged(AttachmentItemEventArgs args)
Parameters
OnAttachmentCreated(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentCreated(AttachmentItemEventArgs args)
Parameters
OnAttachmentDataBound(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentDataBound(AttachmentItemEventArgs args)
Parameters
OnAttachmentHided(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentHided(AttachmentItemEventArgs args)
Parameters
OnAttachmentRemoveClicked(AttachmentItemEventArgs)
Declaration
protected virtual void OnAttachmentRemoveClicked(AttachmentItemEventArgs args)
Parameters
OnFileUploaded(UploaderEventArgs)
Declaration
protected virtual void OnFileUploaded(UploaderEventArgs args)
Parameters
OnPreRender(EventArgs)
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Overrides
RaisePostDataChangedEvent()
Raises post-data changed notifications for the attachment control.
This implementation is intentionally empty; inspect UploadedFileGuids during page processing.
Declaration
public override void RaisePostDataChangedEvent()
Overrides
Render(HtmlTextWriter)
Renders the control to the specified HTML writer.
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Overrides
Upload(int, string, Stream)
Declaration
public void Upload(int filesize, string filename, Stream stream)
Parameters
Upload(int, string, string)
Declaration
public void Upload(int filesize, string filename, string temppath)
Parameters
Events
AttachmentActionClicked
Occurs when the action button is clicked for an attachment item.
Declaration
public event AttachmentItemEventHandler AttachmentActionClicked
Event Type
AttachmentAdded
Occurs when an attachment item is added to the collection.
Declaration
public event AttachmentItemEventHandler AttachmentAdded
Event Type
AttachmentCheckChanged
Occurs when an attachment item's checked state changes.
Declaration
public event AttachmentItemEventHandler AttachmentCheckChanged
Event Type
AttachmentCreated
Occurs when an attachment item object is created.
Declaration
public event AttachmentItemEventHandler AttachmentCreated
Event Type
AttachmentDataBound
Occurs when an attachment item is data-bound.
Declaration
public event AttachmentItemEventHandler AttachmentDataBound
Event Type
AttachmentHided
Occurs when an attachment item is hidden.
Declaration
public event AttachmentItemEventHandler AttachmentHided
Event Type
AttachmentRemoveClicked
Occurs when the remove action is triggered for an attachment item.
Declaration
public event AttachmentItemEventHandler AttachmentRemoveClicked
Event Type
FileUploaded
Occurs after a file is uploaded into the attachment list.
Declaration
public event UploaderEventHandler FileUploaded
Event Type
Implements