Search Results for

Show / Hide Table of Contents

# Class AjaxDropZone

Standalone drag-and-drop upload zone for Web Forms pages.

##### Inheritance

object
Control
WebControl
AjaxDropZone

##### Implements

IComponent
IDisposable
IParserAccessor
IUrlResolutionService
IDataBindingsAccessor
IControlBuilderAccessor
IControlDesignerAccessor
IExpressionsAccessor
IAttributeAccessor

##### Inherited Members

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: AjaxUploader.Controls

###### Assembly: AjaxUploader.dll

##### Syntax

    public class AjaxDropZone : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor

### Constructors

#### AjaxDropZone()

Initializes a new instance of the AjaxDropZone control.

##### Declaration

    public AjaxDropZone()

### Properties

#### AutoUpload

Gets or sets whether uploads begin immediately after drop or file selection. When disabled, files stay queued until client code starts the upload.

##### Declaration

    public bool AutoUpload { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### DropOverlay

Gets or sets whether an overlay is shown while dragging files over the page.

##### Declaration

    public bool DropOverlay { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### DropOverlayText

Gets or sets the text shown inside the drop overlay.

##### Declaration

    public string DropOverlayText { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### DropText

Gets or sets the text displayed inside the drop zone.

##### Declaration

    public string DropText { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### Extensions

Gets or sets the allowed file extensions as a comma-separated list.

##### Declaration

    public string Extensions { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### MaxSize

Gets or sets the maximum allowed file size.

##### Declaration

    public string MaxSize { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### Multiple

Gets or sets whether multiple files can be dropped or selected at once.

##### Declaration

    public bool Multiple { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### ShowProgress

Gets or sets whether the built-in progress UI is shown for the standalone drop zone.

##### Declaration

    public bool ShowProgress { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### UploadUrl

Gets or sets a custom upload endpoint for dropped files. When left empty, the standard AjaxUploader upload endpoint is used.

##### Declaration

    public string UploadUrl { get; set; }

##### Property Value

Type | Description
--- | ---
string |

### Methods

#### 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

Control.OnPreRender(EventArgs)

#### 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

WebControl.Render(HtmlTextWriter)

### Implements

IComponent
IDisposable
IParserAccessor
IUrlResolutionService
IDataBindingsAccessor
IControlBuilderAccessor
IControlDesignerAccessor
IExpressionsAccessor
IAttributeAccessor