Class AsyncFileUpload

Inheritance
System.Object
AsyncFileUpload
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler
Namespace: AjaxControlToolkit
Assembly: AjaxControlToolkit.dll
Version: 13.30.0
Syntax
[RequiredScript(typeof(CommonToolkitScripts))]
[ClientScriptResource("AjaxControlToolkit.AsyncFileUpload", "AjaxControlToolkit.AsyncFileUpload.AsyncFileUpload.js")]
public class AsyncFileUpload : ScriptControlBase, INamingContainer, IControlResolver, IPostBackDataHandler, ICallbackEventHandler, IClientStateManager

Constructors

AsyncFileUpload()

Declaration
public AsyncFileUpload()

Properties

CompleteBackColor

Declaration
public Color CompleteBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color

ContentType

Declaration
public string ContentType { get; }
Property Value
Type Description
System.String

ErrorBackColor

Declaration
public Color ErrorBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color

FailedValidation

Declaration
public bool FailedValidation { get; set; }
Property Value
Type Description
System.Boolean

FileBytes

Declaration
public byte[] FileBytes { get; }
Property Value
Type Description
System.Byte[]

FileContent

Declaration
public Stream FileContent { get; }
Property Value
Type Description
System.IO.Stream

FileName

Declaration
public string FileName { get; }
Property Value
Type Description
System.String

HasFile

Declaration
public bool HasFile { get; }
Property Value
Type Description
System.Boolean

IsUploading

Declaration
public bool IsUploading { get; }
Property Value
Type Description
System.Boolean

OnClientUploadComplete

Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadComplete")]
public string OnClientUploadComplete { get; set; }
Property Value
Type Description
System.String

OnClientUploadError

Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadError")]
public string OnClientUploadError { get; set; }
Property Value
Type Description
System.String

OnClientUploadStarted

Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadStarted")]
public string OnClientUploadStarted { get; set; }
Property Value
Type Description
System.String

PersistedStoreType

Declaration
public AsyncFileUpload.PersistedStoreTypeEnum PersistedStoreType { get; set; }
Property Value
Type Description
AsyncFileUpload.PersistedStoreTypeEnum

PostedFile

Declaration
public HttpPostedFile PostedFile { get; }
Property Value
Type Description
System.Web.HttpPostedFile

ThrobberID

Declaration
public string ThrobberID { get; set; }
Property Value
Type Description
System.String

UploaderStyle

Declaration
public AsyncFileUpload.UploaderStyleEnum UploaderStyle { get; set; }
Property Value
Type Description
AsyncFileUpload.UploaderStyleEnum

UploadingBackColor

Declaration
public Color UploadingBackColor { get; set; }
Property Value
Type Description
System.Drawing.Color

Width

Declaration
public override Unit Width { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

Methods

CreateChildControls()

Declaration
protected override void CreateChildControls()

CreateControlStyle()

Declaration
protected override Style CreateControlStyle()
Returns
Type Description
System.Web.UI.WebControls.Style

DescribeComponent(ScriptComponentDescriptor)

Declaration
protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
Parameters
Type Name Description
System.Web.UI.ScriptComponentDescriptor descriptor
Overrides

GenerateHtmlInputFileControl(String)

Declaration
protected string GenerateHtmlInputFileControl(string lastFileName)
Parameters
Type Name Description
System.String lastFileName
Returns
Type Description
System.String

GenerateHtmlInputHiddenControl()

Declaration
protected string GenerateHtmlInputHiddenControl()
Returns
Type Description
System.String

GetBytesFromStream(Stream)

Declaration
public byte[] GetBytesFromStream(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream
Returns
Type Description
System.Byte[]

OnPreRender(EventArgs)

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

OnUploadedComplete(AsyncFileUploadEventArgs)

Declaration
protected virtual void OnUploadedComplete(AsyncFileUploadEventArgs e)
Parameters
Type Name Description
AsyncFileUploadEventArgs e

OnUploadedFileError(AsyncFileUploadEventArgs)

Declaration
protected virtual void OnUploadedFileError(AsyncFileUploadEventArgs e)
Parameters
Type Name Description
AsyncFileUploadEventArgs e

SaveAs(String)

Declaration
public void SaveAs(string filename)
Parameters
Type Name Description
System.String filename

Events

UploadedComplete

Declaration
public event EventHandler<AsyncFileUploadEventArgs> UploadedComplete
Event Type
Type Description
System.EventHandler<AsyncFileUploadEventArgs>

UploadedFileError

Declaration
public event EventHandler<AsyncFileUploadEventArgs> UploadedFileError
Event Type
Type Description
System.EventHandler<AsyncFileUploadEventArgs>

Implements

System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler