Class AjaxFileUpload
- Namespace
- AjaxControlToolkit
- Assembly
- AjaxControlToolkit.dll
[RequiredScript(typeof(CommonToolkitScripts))]
[ClientCssResource("AjaxFileUpload")]
[ClientScriptResource("Sys.Extended.UI.AjaxFileUpload.Control", "AjaxFileUpload")]
public class AjaxFileUpload : ScriptControlBase, INamingContainer, IControlResolver, IPostBackDataHandler, ICallbackEventHandler, IClientStateManager
- Inheritance
-
AjaxFileUpload
- Implements
-
INamingContainer
IPostBackDataHandler
ICallbackEventHandler
- Inherited Members
-
Constructors
Properties
[ExtenderControlProperty]
[ClientPropertyName("allowedFileTypes")]
public string AllowedFileTypes { get; set; }
Property Value
- string
[ExtenderControlProperty]
[ClientPropertyName("autoStartUpload")]
public bool AutoStartUpload { get; set; }
Property Value
- bool
[ExtenderControlProperty]
[ClientPropertyName("chunkSize")]
public int ChunkSize { get; set; }
Property Value
- int
[ExtenderControlProperty]
[ClientPropertyName("clearFileListAfterUpload")]
public bool ClearFileListAfterUpload { get; set; }
Property Value
- bool
ContextKeys
public string ContextKeys { get; set; }
Property Value
- string
[ExtenderControlProperty]
[ClientPropertyName("maxFileSize")]
public int MaxFileSize { get; set; }
Property Value
- int
[ExtenderControlProperty]
[ClientPropertyName("maximumNumberOfFiles")]
public int MaximumNumberOfFiles { get; set; }
Property Value
- int
[ExtenderControlProperty]
[ClientPropertyName("mode")]
public AjaxFileUploadMode Mode { get; set; }
Property Value
- AjaxFileUploadMode
[ExtenderControlEvent]
[ClientPropertyName("uploadComplete")]
public string OnClientUploadComplete { get; set; }
Property Value
- string
[ExtenderControlEvent]
[ClientPropertyName("uploadCompleteAll")]
public string OnClientUploadCompleteAll { get; set; }
Property Value
- string
[ExtenderControlEvent]
[ClientPropertyName("uploadError")]
public string OnClientUploadError { get; set; }
Property Value
- string
[ExtenderControlEvent]
[ClientPropertyName("uploadStart")]
public string OnClientUploadStart { get; set; }
Property Value
- string
public bool ServerPollingSupport { get; }
Property Value
- bool
public string ThrobberID { get; set; }
Property Value
- string
public string UploadHandlerPath { get; set; }
Property Value
- string
Methods
public static void CheckTempFilePath(string tmpFilePath)
Parameters
tmpFilePath
string
public static void CleanAllTemporaryData()
protected override void CreateChildControls()
protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
Parameters
descriptor
ScriptComponentDescriptor
protected string GenerateHtmlInputControls()
Returns
- string
public static string GetRootTempFolder()
Returns
- string
public static string GetTempFolder(string fileId)
Parameters
fileId
string
Returns
- string
protected override void OnInit(EventArgs e)
Parameters
e
EventArgs
protected override void OnLoad(EventArgs e)
Parameters
e
EventArgs
public void SaveAs(string fileName)
Parameters
fileName
string
Events
[Bindable(true)]
public event EventHandler<AjaxFileUploadEventArgs> UploadComplete
Event Type
- EventHandler<AjaxFileUploadEventArgs>
[Bindable(true)]
public event EventHandler<AjaxFileUploadCompleteAllEventArgs> UploadCompleteAll
Event Type
- EventHandler<AjaxFileUploadCompleteAllEventArgs>
[Bindable(true)]
public event EventHandler<AjaxFileUploadStartEventArgs> UploadStart
Event Type
- EventHandler<AjaxFileUploadStartEventArgs>