Class AjaxDropZone
Standalone drag-and-drop upload zone for Web Forms pages.
Implements
Inherited Members
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
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. |