Class AsyncFileUpload
Inheritance
System.Object
AsyncFileUpload
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler
Assembly: AjaxControlToolkit.dll
Version: 13.30.0
[RequiredScript(typeof(CommonToolkitScripts))]
[ClientScriptResource("AjaxControlToolkit.AsyncFileUpload", "AjaxControlToolkit.AsyncFileUpload.AsyncFileUpload.js")]
public class AsyncFileUpload : ScriptControlBase, INamingContainer, IControlResolver, IPostBackDataHandler, ICallbackEventHandler, IClientStateManager
Constructors
Declaration
Properties
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 |
|
Declaration
public Color ErrorBackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public bool FailedValidation { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public byte[] FileBytes { get; }
Property Value
Type |
Description |
System.Byte[] |
|
FileContent
Declaration
public Stream FileContent { get; }
Property Value
Type |
Description |
System.IO.Stream |
|
Declaration
public string FileName { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public bool HasFile { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsUploading { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadComplete")]
public string OnClientUploadComplete { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadError")]
public string OnClientUploadError { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
[ExtenderControlEvent]
[ClientPropertyName("uploadStarted")]
public string OnClientUploadStarted { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public AsyncFileUpload.PersistedStoreTypeEnum PersistedStoreType { get; set; }
Property Value
PostedFile
Declaration
public HttpPostedFile PostedFile { get; }
Property Value
Type |
Description |
System.Web.HttpPostedFile |
|
Declaration
public string ThrobberID { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public AsyncFileUpload.UploaderStyleEnum UploaderStyle { get; set; }
Property Value
Declaration
public Color UploadingBackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public override Unit Width { get; set; }
Property Value
Type |
Description |
System.Web.UI.WebControls.Unit |
|
Methods
Declaration
protected override void CreateChildControls()
Declaration
protected override Style CreateControlStyle()
Returns
Type |
Description |
System.Web.UI.WebControls.Style |
|
Declaration
protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
Parameters
Type |
Name |
Description |
System.Web.UI.ScriptComponentDescriptor |
descriptor |
|
Overrides
Declaration
protected string GenerateHtmlInputFileControl(string lastFileName)
Parameters
Type |
Name |
Description |
System.String |
lastFileName |
|
Returns
Type |
Description |
System.String |
|
Declaration
protected string GenerateHtmlInputHiddenControl()
Returns
Type |
Description |
System.String |
|
Declaration
public byte[] GetBytesFromStream(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Byte[] |
|
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected virtual void OnUploadedComplete(AsyncFileUploadEventArgs e)
Parameters
Declaration
protected virtual void OnUploadedFileError(AsyncFileUploadEventArgs e)
Parameters
Declaration
public void SaveAs(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Events
Declaration
public event EventHandler<AsyncFileUploadEventArgs> UploadedComplete
Event Type
Declaration
public event EventHandler<AsyncFileUploadEventArgs> UploadedFileError
Event Type
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler