• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Ajax Async File Upload Control

Async File Upload

Asyncfileupload control is used to Asynchronously upload the file to server properties.

Hasfile :

Used to specify whether or not a file is selected with in the file upload control

FileName :

Returns name of the file selected in fileupload control.

FileBytes :

Returns the content of the selected file in the form of Byte array.

Filecontent : 

Returns an IOstream object by using which you can read data from the selected file or write data to the selected file.

uploaderstyle :

used to specify how the Asynch fileuplad will appear. IT has two options ‘traditional’ & ‘modern’

uploadingBackcolor :

Used to specify the back ground color for file upload while the file is uploadoing.

ErrorBackcolor :

Used to specify the background color for the Asyncfileupload if there is any error in uploading the file.

completebackcolor :

Used to specify the background color for ‘file upload control ’ after uploading the file is completed.


saveAS() :

Used to save the file selected in the Asynfileupload to the server.


The following example demonstrates how to use the AsyncFileupload.

Add a page to the web site , take a toolkit scriptmanager on the page and then design it as follows with one Async fileuplaod, a button & an image control.

For the Asyncfile upload control set the name as AFUL and write the following code within the button upload click event.

Button click




string path=”~/photos/” + AFUL.fileName;


Image1.Imageurl.path l


Review Date
Reviewed Item
Ajax Async File Upload Control
Author Rating

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Ajax Async File Upload Control"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.