ASP.NET AJAX Control Toolkit Demos v17.1.1.0

AsyncFileUpload Sample
Ajax Control Toolkit
AsyncFileUpload Demonstration
Click 'Select File' for asynchronous uploading.

 
The latest Server-side event:
 

Client-side events:
AsyncFileUpload Description
AsyncFileUpload is an ASP.NET AJAX Control that allows you to asynchronously upload files to the server. The file uploading results can be checked both on the server and client sides.
AsyncFileUpload Events, Properties and Methods
Properties
  • CompleteBackColor - The control's background color on upload complete. The default value is Lime.
  • ContentType - Gets the name of a file on the client that is uploaded using the control.
  • ErrorBackColor - The control's background color on an upload error. The default value is Red.
  • FailedValidation - Whether validation is failed
  • FileBytes - Uploaded file bytes
  • FileContent - Gets a Stream object that points to an uploaded file to prepare for reading the content of the file.
  • FileName - Gets the name of a file on the client that is uploaded using the control.
  • HasFile - A bool value indicating whether the control contains a file
  • IsUploading - Whether a file is being uploaded.
  • OnClientUploadComplete - The name of a javascript function executed on the client side after a file is successfully uploaded.
  • OnClientUploadError - The name of a javascript function executed on the client side if the file upload failed.
  • OnClientUploadStarted - The name of a javascript function executed on the client side if the file upload started.
  • PersistFile - Whether a file is stored in session. The default value is false.
  • PostedFile - A HttpPostedFile object that provides access to the uploaded file
  • ThrobberID - ID of a control that is shown while the file is being uploaded.
  • UploaderStyle - The control's appearance style (Traditional, Modern). The default value is Traditional.
  • UploadingBackColor - The control's background color when uploading is in progress. The default value is White.
  • Width - The control's width (Unit). The default value is 355px.

Methods
  • ClearAllFilesFromPersistedStore() - Clears all uploaded files of a current control from session.
  • ClearFileFromPersistedStore() - Clears all uploaded files of current control from session
  • SaveAs(fileName) - Saves the content of an uploaded file.

Events
  • UploadedComplete - Fires when the file is successfully uploaded.
  • UploadedFileError - Fires when the uploaded file is corrupted.
Copyright © 2012-2017 CodePlex Foundation. All Rights Reserved.