AjaxUploader
Search Results for

    Show / Hide Table of Contents

    Class UploadAttachments

    Legacy attachment-list control compatibility wrapper built on top of AjaxAttachments.

    Inheritance
    object
    Control
    WebControl
    AjaxAttachments
    UploadAttachments
    Implements
    IComponent
    IDisposable
    IParserAccessor
    IUrlResolutionService
    IDataBindingsAccessor
    IControlBuilderAccessor
    IControlDesignerAccessor
    IExpressionsAccessor
    IAttributeAccessor
    IPostBackDataHandler
    Inherited Members
    AjaxAttachments.MaxFiles
    AjaxAttachments.Extensions
    AjaxAttachments.MaxSize
    AjaxAttachments.UploadUrl
    AjaxAttachments.ShowSize
    AjaxAttachments.Removable
    AjaxAttachments.OnClientChange
    AjaxAttachments.ButtonText
    AjaxAttachments.UploadedFileGuids
    AjaxAttachments.LoadPostData(string, NameValueCollection)
    WebControl.AddAttributesToRender(HtmlTextWriter)
    WebControl.ApplyStyle(Style)
    WebControl.CopyBaseAttributes(WebControl)
    WebControl.CreateControlStyle()
    WebControl.LoadViewState(object)
    WebControl.TrackViewState()
    WebControl.MergeStyle(Style)
    WebControl.RenderBeginTag(HtmlTextWriter)
    WebControl.RenderEndTag(HtmlTextWriter)
    WebControl.RenderContents(HtmlTextWriter)
    WebControl.SaveViewState()
    WebControl.AccessKey
    WebControl.Attributes
    WebControl.BackColor
    WebControl.BorderColor
    WebControl.BorderWidth
    WebControl.BorderStyle
    WebControl.ControlStyle
    WebControl.ControlStyleCreated
    WebControl.CssClass
    WebControl.DisabledCssClass
    WebControl.Style
    WebControl.Enabled
    WebControl.EnableTheming
    WebControl.Font
    WebControl.ForeColor
    WebControl.HasAttributes
    WebControl.Height
    WebControl.IsEnabled
    WebControl.SupportsDisabledAttribute
    WebControl.SkinID
    WebControl.TabIndex
    WebControl.TagKey
    WebControl.TagName
    WebControl.ToolTip
    WebControl.Width
    Control.ResolveAdapter()
    Control.HasEvents()
    Control.GetRouteUrl(object)
    Control.GetRouteUrl(string, object)
    Control.GetRouteUrl(RouteValueDictionary)
    Control.GetRouteUrl(string, RouteValueDictionary)
    Control.GetUniqueIDRelativeTo(Control)
    Control.ApplyStyleSheetSkin(Page)
    Control.OnDataBinding(EventArgs)
    Control.DataBind()
    Control.DataBind(bool)
    Control.DataBindChildren()
    Control.AddParsedSubObject(object)
    Control.EnsureID()
    Control.OnInit(EventArgs)
    Control.ClearChildState()
    Control.ClearChildControlState()
    Control.ClearChildViewState()
    Control.ClearEffectiveClientIDMode()
    Control.ClearCachedClientID()
    Control.Focus()
    Control.LoadControlState(object)
    Control.MapPathSecure(string)
    Control.OpenFile(string)
    Control.OnLoad(EventArgs)
    Control.BuildProfileTree(string, bool)
    Control.SaveControlState()
    Control.RenderChildren(HtmlTextWriter)
    Control.RenderControl(HtmlTextWriter)
    Control.RenderControl(HtmlTextWriter, ControlAdapter)
    Control.OnUnload(EventArgs)
    Control.Dispose()
    Control.RaiseBubbleEvent(object, EventArgs)
    Control.OnBubbleEvent(object, EventArgs)
    Control.AddedControl(Control, int)
    Control.CreateControlCollection()
    Control.CreateChildControls()
    Control.ResolveUrl(string)
    Control.ResolveClientUrl(string)
    Control.FindControl(string)
    Control.FindControl(string, int)
    Control.GetDesignModeState()
    Control.HasControls()
    Control.IsLiteralContent()
    Control.EnsureChildControls()
    Control.RemovedControl(Control)
    Control.SetDesignModeState(IDictionary)
    Control.SetRenderMethodDelegate(RenderMethod)
    Control.ClientIDMode
    Control.ClientID
    Control.ClientIDSeparator
    Control.Context
    Control.Adapter
    Control.DesignMode
    Control.Events
    Control.ID
    Control.IsChildControlStateCleared
    Control.EnableViewState
    Control.ViewStateMode
    Control.IsViewStateEnabled
    Control.NamingContainer
    Control.IdSeparator
    Control.LoadViewStateByID
    Control.Page
    Control.RenderingCompatibility
    Control.TemplateControl
    Control.Parent
    Control.TemplateSourceDirectory
    Control.AppRelativeTemplateSourceDirectory
    Control.Site
    Control.Visible
    Control.UniqueID
    Control.HasChildViewState
    Control.Controls
    Control.ValidateRequestMode
    Control.ViewState
    Control.ViewStateIgnoresCase
    Control.ChildControlsCreated
    Control.IsTrackingViewState
    Control.Disposed
    Control.DataBinding
    Control.Init
    Control.Load
    Control.PreRender
    Control.Unload
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: CuteWebUI
    Assembly: AjaxUploader.dll
    Syntax
    public class UploadAttachments : AjaxAttachments, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IPostBackDataHandler
    Remarks

    In v4 the hierarchy was UploadAttachments : UploadFileBase : UploaderBase, so the attachments control inherited the entire uploader API. v5 rebased it onto the modern AjaxAttachments control, which silently removed 65 public members - upgraded v4 pages using Attachments1.TempDirectory, MaxFilesLimit, InsertButtonID or the FileValidating / UploadCompleted events failed to compile.

    C# has no multiple inheritance, so the members are re-declared here rather than inherited. Storage and defaults deliberately mirror UploaderBase member-for-member so the two legacy controls behave identically for the same markup.

    Constructors

    UploadAttachments()

    Initializes a new instance of the UploadAttachments class.

    Declaration
    public UploadAttachments()

    Properties

    ActionButtonBehavior

    Declaration
    public AttachmentItemBehavior ActionButtonBehavior { get; set; }
    Property Value
    Type Description
    AttachmentItemBehavior

    ActionButtonText

    Declaration
    public string ActionButtonText { get; set; }
    Property Value
    Type Description
    string

    ActionHeaderText

    Declaration
    public string ActionHeaderText { get; set; }
    Property Value
    Type Description
    string

    AttachmentTRStyle

    Declaration
    public string AttachmentTRStyle { get; set; }
    Property Value
    Type Description
    string

    AttachmentTableStyle

    Declaration
    public string AttachmentTableStyle { get; set; }
    Property Value
    Type Description
    string

    AutoPostBack

    Gets or sets whether the control posts back automatically when the upload batch finishes, raising AttachmentAdded and the legacy FileUploaded event without a submit button. Defaults to true to match the v4 (CuteWebUI) behaviour that upgraded pages depend on; set false to require an explicit postback (e.g. when a normal submit button drives the form).

    Declaration
    public bool AutoPostBack { get; set; }
    Property Value
    Type Description
    bool

    AutoUseSystemTempFolder

    Gets or sets whether the system temp folder is used automatically.

    Declaration
    public bool AutoUseSystemTempFolder { get; set; }
    Property Value
    Type Description
    bool

    ButtonOnClickScript

    Gets or sets the script executed when the browse button is clicked.

    Declaration
    public string ButtonOnClickScript { get; set; }
    Property Value
    Type Description
    string

    CancelAllMsg

    Gets or sets the cancel-all prompt text.

    Declaration
    public string CancelAllMsg { get; set; }
    Property Value
    Type Description
    string

    CancelButton

    Gets the underlying legacy cancel button control.

    Declaration
    [Browsable(false)]
    public Button CancelButton { get; }
    Property Value
    Type Description
    Button

    CancelButtonID

    Gets or sets the ID of an existing element used as the cancel button.

    Declaration
    public string CancelButtonID { get; set; }
    Property Value
    Type Description
    string

    CancelButtonStyle

    Gets the style applied to the cancel button.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style CancelButtonStyle { get; }
    Property Value
    Type Description
    Style

    CancelText

    Gets or sets the cancel button caption.

    Declaration
    public string CancelText { get; set; }
    Property Value
    Type Description
    string

    CancelUploadMsg

    Gets or sets the cancel-upload prompt text.

    Declaration
    public string CancelUploadMsg { get; set; }
    Property Value
    Type Description
    string

    CustomProvider

    Gets or sets a custom provider used to surface externally managed attachments.

    Declaration
    public IAttachmentProvider CustomProvider { get; set; }
    Property Value
    Type Description
    IAttachmentProvider

    DialogAccept

    Gets or sets the file-dialog accept list.

    Declaration
    public string DialogAccept { get; set; }
    Property Value
    Type Description
    string

    DialogFilter

    Gets or sets the legacy file-dialog filter.

    Declaration
    public string DialogFilter { get; set; }
    Property Value
    Type Description
    string

    DirtyText

    Gets or sets the marker text used by legacy item templates for unsaved changes.

    Declaration
    public string DirtyText { get; set; }
    Property Value
    Type Description
    string

    DropZoneID

    Declaration
    public string DropZoneID { get; set; }
    Property Value
    Type Description
    string

    FileTooLargeMsg

    Gets or sets the message shown when a file exceeds the size limit.

    Declaration
    public string FileTooLargeMsg { get; set; }
    Property Value
    Type Description
    string

    FileTypeNotSupportMsg

    Gets or sets the message shown for a disallowed file type.

    Declaration
    public string FileTypeNotSupportMsg { get; set; }
    Property Value
    Type Description
    string

    FlashLoadMode

    Gets or sets whether the legacy Flash transport is loaded.

    Declaration
    public bool FlashLoadMode { get; set; }
    Property Value
    Type Description
    bool

    FlashUploadPage

    Gets or sets the legacy Flash upload page URL.

    Declaration
    public string FlashUploadPage { get; set; }
    Property Value
    Type Description
    string

    FlashWarningImage

    Gets or sets the legacy Flash warning image URL.

    Declaration
    public string FlashWarningImage { get; set; }
    Property Value
    Type Description
    string

    HeaderRowStyle

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public TableItemStyle HeaderRowStyle { get; }
    Property Value
    Type Description
    TableItemStyle

    HideNoItemTable

    Declaration
    public bool HideNoItemTable { get; set; }
    Property Value
    Type Description
    bool

    InputboxCSSText

    Gets or sets inline CSS applied to the legacy file input box.

    Declaration
    public string InputboxCSSText { get; set; }
    Property Value
    Type Description
    string

    InsertButton

    Gets the underlying legacy browse button control.

    Declaration
    [Browsable(false)]
    public Button InsertButton { get; }
    Property Value
    Type Description
    Button

    InsertButtonID

    Gets or sets the ID of an existing element used as the browse button.

    Declaration
    public string InsertButtonID { get; set; }
    Property Value
    Type Description
    string

    InsertButtonStyle

    Gets the style applied to the legacy browse button.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style InsertButtonStyle { get; }
    Property Value
    Type Description
    Style

    InsertText

    Gets or sets the caption of the legacy attachment browse button.

    Declaration
    public string InsertText { get; set; }
    Property Value
    Type Description
    string

    ItemCellStyle

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public TableItemStyle ItemCellStyle { get; }
    Property Value
    Type Description
    TableItemStyle

    ItemCheckStyle

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style ItemCheckStyle { get; }
    Property Value
    Type Description
    Style

    ItemLabelStyle

    Gets the style applied to the legacy item label.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style ItemLabelStyle { get; }
    Property Value
    Type Description
    Style

    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
    Type Description
    ITemplate

    ItemTemplatePosition

    Declaration
    public AttachmentItemTemplatePosition ItemTemplatePosition { get; set; }
    Property Value
    Type Description
    AttachmentItemTemplatePosition

    ItemTextTemplate

    Gets or sets the legacy item text template.

    Declaration
    public string ItemTextTemplate { get; set; }
    Property Value
    Type Description
    string

    Items

    Gets the legacy attachment item collection.

    Declaration
    [Browsable(false)]
    public AttachmentItemCollection Items { get; }
    Property Value
    Type Description
    AttachmentItemCollection

    ManualStartUpload

    Declaration
    public bool ManualStartUpload { get; set; }
    Property Value
    Type Description
    bool

    MaxFilesLimit

    Gets or sets the maximum number of files accepted in one batch.

    Declaration
    public int MaxFilesLimit { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Delegates to the base MaxFiles, which is what actually reaches the client as the maxFiles option. Backing this with its own ViewState slot (as it was) meant a v4 page limiting uploads to five files silently accepted any number.

    MaxFilesLimitMsg

    Gets or sets the message shown when the file-count limit is exceeded.

    Declaration
    public string MaxFilesLimitMsg { get; set; }
    Property Value
    Type Description
    string

    MultipleFilesUpload

    Declaration
    public bool MultipleFilesUpload { get; set; }
    Property Value
    Type Description
    bool

    NumFilesShowCancelAll

    Gets or sets the number of queued files at which the cancel-all control appears.

    Declaration
    public int NumFilesShowCancelAll { get; set; }
    Property Value
    Type Description
    int

    NumFilesShowQueueUI

    Gets or sets the number of queued files at which the queue UI appears.

    Declaration
    public int NumFilesShowQueueUI { get; set; }
    Property Value
    Type Description
    int

    ProgressBarBackgroundImage

    Gets or sets the progress bar background image URL.

    Declaration
    public string ProgressBarBackgroundImage { get; set; }
    Property Value
    Type Description
    string

    ProgressBarBorderStyle

    Gets or sets the progress bar border style.

    Declaration
    public string ProgressBarBorderStyle { get; set; }
    Property Value
    Type Description
    string

    ProgressBarColor

    Gets or sets the progress bar fill colour.

    Declaration
    public string ProgressBarColor { get; set; }
    Property Value
    Type Description
    string

    ProgressBarHeight

    Gets or sets the progress bar height in pixels.

    Declaration
    public int ProgressBarHeight { get; set; }
    Property Value
    Type Description
    int

    ProgressBarStyle

    Gets or sets the progress bar rendering style.

    Declaration
    public ProgressBarType ProgressBarStyle { get; set; }
    Property Value
    Type Description
    ProgressBarType

    ProgressCtrlID

    Gets or sets the ID of an existing element used as the progress control.

    Declaration
    public string ProgressCtrlID { get; set; }
    Property Value
    Type Description
    string

    ProgressInfoStyle

    Gets or sets inline CSS applied to the progress info text.

    Declaration
    public string ProgressInfoStyle { get; set; }
    Property Value
    Type Description
    string

    ProgressLabel

    Gets the label used for legacy progress text.

    Declaration
    [Browsable(false)]
    public Label ProgressLabel { get; }
    Property Value
    Type Description
    Label

    ProgressLabelStyle

    Gets the style applied to the progress label.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style ProgressLabelStyle { get; }
    Property Value
    Type Description
    Style

    ProgressPanel

    Gets the container used for legacy progress UI.

    Declaration
    [Browsable(false)]
    public Panel ProgressPanel { get; }
    Property Value
    Type Description
    Panel

    ProgressPanelStyle

    Gets the style applied to the progress panel.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public Style ProgressPanelStyle { get; }
    Property Value
    Type Description
    Style

    ProgressPanelWidth

    Gets or sets the progress panel width in pixels.

    Declaration
    public int ProgressPanelWidth { get; set; }
    Property Value
    Type Description
    int

    ProgressPicture

    Gets or sets the animated progress image URL.

    Declaration
    public string ProgressPicture { get; set; }
    Property Value
    Type Description
    string

    ProgressTextID

    Gets or sets the ID of an existing element used for progress text.

    Declaration
    public string ProgressTextID { get; set; }
    Property Value
    Type Description
    string

    ProgressTextTemplate

    Gets or sets the progress text template.

    Declaration
    public string ProgressTextTemplate { get; set; }
    Property Value
    Type Description
    string

    QueuePanelID

    Gets or sets the ID of an existing element used as the queue panel.

    Declaration
    public string QueuePanelID { get; set; }
    Property Value
    Type Description
    string

    RemoveButtonBehavior

    Declaration
    public AttachmentItemBehavior RemoveButtonBehavior { get; set; }
    Property Value
    Type Description
    AttachmentItemBehavior

    RemoveButtonText

    Declaration
    public string RemoveButtonText { get; set; }
    Property Value
    Type Description
    string

    RemoveHeaderText

    Declaration
    public string RemoveHeaderText { get; set; }
    Property Value
    Type Description
    string

    ShowActionButtons

    Declaration
    public bool ShowActionButtons { get; set; }
    Property Value
    Type Description
    bool

    ShowCheckBoxes

    Declaration
    public bool ShowCheckBoxes { get; set; }
    Property Value
    Type Description
    bool

    ShowFileIcons

    Declaration
    public bool ShowFileIcons { get; set; }
    Property Value
    Type Description
    bool

    ShowFrameBrowseButton

    Gets or sets whether the frame-based browse button is shown.

    Declaration
    public bool ShowFrameBrowseButton { get; set; }
    Property Value
    Type Description
    bool

    ShowProgressBar

    Gets or sets whether the progress bar is shown.

    Declaration
    public bool ShowProgressBar { get; set; }
    Property Value
    Type Description
    bool

    ShowProgressInfo

    Gets or sets whether progress text is shown.

    Declaration
    public bool ShowProgressInfo { get; set; }
    Property Value
    Type Description
    bool

    ShowQueueTable

    Declaration
    public bool ShowQueueTable { get; set; }
    Property Value
    Type Description
    bool

    ShowRemoveButtons

    Declaration
    public bool ShowRemoveButtons { get; set; }
    Property Value
    Type Description
    bool

    ShowRemoveButtonsAsText

    Declaration
    public bool ShowRemoveButtonsAsText { get; set; }
    Property Value
    Type Description
    bool

    ShowTableHeader

    Declaration
    public bool ShowTableHeader { get; set; }
    Property Value
    Type Description
    bool

    TableHeaderTemplate

    Declaration
    public string TableHeaderTemplate { get; set; }
    Property Value
    Type Description
    string

    TableStyle

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public TableStyle TableStyle { get; }
    Property Value
    Type Description
    TableStyle

    TempDirectory

    Gets or sets the temporary upload directory.

    Declaration
    public string TempDirectory { get; set; }
    Property Value
    Type Description
    string

    TemplateHeaderText

    Declaration
    public string TemplateHeaderText { get; set; }
    Property Value
    Type Description
    string

    UploadAddonButtonImage

    Gets or sets the add-on button image URL.

    Declaration
    public string UploadAddonButtonImage { get; set; }
    Property Value
    Type Description
    string

    UploadAddonButtonMode

    Gets or sets the add-on button mode.

    Declaration
    public UploadAddonButtonMode UploadAddonButtonMode { get; set; }
    Property Value
    Type Description
    UploadAddonButtonMode

    UploadAddonButtonShowText

    Gets or sets whether the add-on button shows its text.

    Declaration
    public bool UploadAddonButtonShowText { get; set; }
    Property Value
    Type Description
    bool

    UploadAddonWarningImage

    Gets or sets the add-on warning image URL.

    Declaration
    public string UploadAddonWarningImage { get; set; }
    Property Value
    Type Description
    string

    UploadCursor

    Gets or sets the mouse cursor shown over the browse button.

    Declaration
    public UploadCursor UploadCursor { get; set; }
    Property Value
    Type Description
    UploadCursor

    UploadProcessingMsg

    Gets or sets the server-side processing message.

    Declaration
    public string UploadProcessingMsg { get; set; }
    Property Value
    Type Description
    string

    UploadType

    Declaration
    public UploadType UploadType { get; set; }
    Property Value
    Type Description
    UploadType

    UploadTypePriority

    Gets or sets the preferred upload transport order.

    Declaration
    public string UploadTypePriority { get; set; }
    Property Value
    Type Description
    string

    UploaderDebug

    Gets or sets the legacy debug flag.

    Declaration
    public string UploaderDebug { get; set; }
    Property Value
    Type Description
    string

    UploadingMsg

    Gets or sets the in-progress message.

    Declaration
    public string UploadingMsg { get; set; }
    Property Value
    Type Description
    string

    ValidateOption

    Gets the legacy attachment validation settings.

    Declaration
    [PersistenceMode(PersistenceMode.InnerProperty)]
    public UploaderValidateOption ValidateOption { get; }
    Property Value
    Type Description
    UploaderValidateOption

    WindowsDialogLimitMsg

    Gets or sets the Windows file-dialog limit message.

    Declaration
    public string WindowsDialogLimitMsg { get; set; }
    Property Value
    Type Description
    string

    Methods

    AddCustomAttachment(Guid)

    Adds an externally managed attachment through CustomProvider.

    Declaration
    public void AddCustomAttachment(Guid fileguid)
    Parameters
    Type Name Description
    Guid fileguid

    CheckPostBackData()

    v3/v4 parity: forces the control to process its posted GUID list if ASP.NET has not already done so. In v4 this was the documented escape hatch for pages where the automatic post-data path did not run.

    Declaration
    public void CheckPostBackData()

    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()

    GetAdvancedOption(UploaderAdvancedOption)

    Returns the stored value for a legacy advanced option flag.

    Declaration
    public string GetAdvancedOption(UploaderAdvancedOption name)
    Parameters
    Type Name Description
    UploaderAdvancedOption name
    Returns
    Type Description
    string

    GetAttachmentCount()

    Returns the number of currently visible attachment items.

    Declaration
    public int GetAttachmentCount()
    Returns
    Type Description
    int

    GetBrowserType()

    Gets the current browser name from the active HTTP request.

    Declaration
    public string GetBrowserType()
    Returns
    Type Description
    string

    GetBrowserVersion()

    Gets the current browser version from the active HTTP request.

    Declaration
    public decimal GetBrowserVersion()
    Returns
    Type Description
    decimal

    GetItemsTable()

    Gets the internal table-like container used by the legacy control.

    Declaration
    public WebControl GetItemsTable()
    Returns
    Type Description
    WebControl

    GetTempDirectory()

    Gets the resolved temporary upload directory.

    Declaration
    public string GetTempDirectory()
    Returns
    Type Description
    string

    GetUploadedFile(Guid)

    Resolves an uploaded file by GUID and wraps it in the legacy MVC helper type.

    Declaration
    public MvcUploadFile GetUploadedFile(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    MvcUploadFile

    GetUploaderProvider()

    Creates a legacy provider wrapper for accessing uploaded files.

    Declaration
    public UploaderProvider GetUploaderProvider()
    Returns
    Type Description
    UploaderProvider

    Impersonate()

    Returns a disposable impersonation scope placeholder kept for compatibility.

    Declaration
    public IDisposable Impersonate()
    Returns
    Type Description
    IDisposable

    OnAttachmentActionClicked(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentActionClicked(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentAdded(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentAdded(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentCheckChanged(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentCheckChanged(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentCreated(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentCreated(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentDataBound(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentDataBound(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentHided(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentHided(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnAttachmentRemoveClicked(AttachmentItemEventArgs)

    Declaration
    protected virtual void OnAttachmentRemoveClicked(AttachmentItemEventArgs args)
    Parameters
    Type Name Description
    AttachmentItemEventArgs args

    OnFileUploaded(UploaderEventArgs)

    Declaration
    protected virtual void OnFileUploaded(UploaderEventArgs args)
    Parameters
    Type Name Description
    UploaderEventArgs args

    OnFileValidating(UploaderEventArgs)

    Raises FileValidating for a single file.

    Declaration
    protected virtual void OnFileValidating(UploaderEventArgs args)
    Parameters
    Type Name Description
    UploaderEventArgs args

    OnPreRender(EventArgs)

    Raises the PreRender event.

    Declaration
    protected override void OnPreRender(EventArgs e)
    Parameters
    Type Name Description
    EventArgs e

    An EventArgs object that contains the event data.

    Overrides
    AjaxAttachments.OnPreRender(EventArgs)

    OnUploadCompleted(UploaderEventArgs[])

    Raises UploadCompleted for the batch just processed.

    Declaration
    protected virtual void OnUploadCompleted(UploaderEventArgs[] args)
    Parameters
    Type Name Description
    UploaderEventArgs[] args

    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
    AjaxAttachments.RaisePostDataChangedEvent()

    Render(HtmlTextWriter)

    Renders the control to the specified HTML writer.

    Declaration
    protected override void Render(HtmlTextWriter writer)
    Parameters
    Type Name Description
    HtmlTextWriter writer

    The HtmlTextWriter object that receives the control content.

    Overrides
    AjaxAttachments.Render(HtmlTextWriter)

    SetAdvancedOption(UploaderAdvancedOption, string)

    Stores a legacy advanced option flag value.

    Declaration
    public void SetAdvancedOption(UploaderAdvancedOption name, string value)
    Parameters
    Type Name Description
    UploaderAdvancedOption name
    string value

    SetValidationServerData(string)

    Stores opaque validation data round-tripped by legacy pages.

    Declaration
    public void SetValidationServerData(string data)
    Parameters
    Type Name Description
    string data

    Upload(int, string, Stream)

    Declaration
    public void Upload(int filesize, string filename, Stream stream)
    Parameters
    Type Name Description
    int filesize
    string filename
    Stream stream

    Upload(int, string, string)

    Declaration
    public void Upload(int filesize, string filename, string temppath)
    Parameters
    Type Name Description
    int filesize
    string filename
    string temppath

    Events

    AttachmentActionClicked

    Occurs when the action button is clicked for an attachment item.

    Declaration
    public event AttachmentItemEventHandler AttachmentActionClicked
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentAdded

    Occurs when an attachment item is added to the collection.

    Declaration
    public event AttachmentItemEventHandler AttachmentAdded
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentCheckChanged

    Occurs when an attachment item's checked state changes.

    Declaration
    public event AttachmentItemEventHandler AttachmentCheckChanged
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentCreated

    Occurs when an attachment item object is created.

    Declaration
    public event AttachmentItemEventHandler AttachmentCreated
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentDataBound

    Occurs when an attachment item is data-bound.

    Declaration
    public event AttachmentItemEventHandler AttachmentDataBound
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentHided

    Occurs when an attachment item is hidden.

    Declaration
    public event AttachmentItemEventHandler AttachmentHided
    Event Type
    Type Description
    AttachmentItemEventHandler

    AttachmentRemoveClicked

    Occurs when the remove action is triggered for an attachment item.

    Declaration
    public event AttachmentItemEventHandler AttachmentRemoveClicked
    Event Type
    Type Description
    AttachmentItemEventHandler

    FileUploaded

    Occurs after a file is uploaded into the attachment list.

    Declaration
    public event UploaderEventHandler FileUploaded
    Event Type
    Type Description
    UploaderEventHandler

    FileValidating

    Occurs before an uploaded file is accepted into the attachment list. v4 raised this for every file so pages could reject one by throwing from the handler.

    Declaration
    public event UploaderEventHandler FileValidating
    Event Type
    Type Description
    UploaderEventHandler

    UploadCompleted

    Occurs once after the current batch of uploaded files has been processed.

    Declaration
    public event UploaderBatchEventHandler UploadCompleted
    Event Type
    Type Description
    UploaderBatchEventHandler

    Implements

    IComponent
    IDisposable
    IParserAccessor
    IUrlResolutionService
    IDataBindingsAccessor
    IControlBuilderAccessor
    IControlDesignerAccessor
    IExpressionsAccessor
    IAttributeAccessor
    IPostBackDataHandler
    In this article
    Back to top AjaxUploader API Reference