ComponentOne ToolBar for ASP.NET AJAX: Progress Bar > Custom Progress Bar

Custom Progress Bar

A custom progress bar can be created using the UploadProgress class as well as the C1Window and C1ProgressBar controls.

To create a custom progress bar, set the ShowProgress property to false so the built-in progress bar doesn’t appear when you upload a file.

 

 Sample Project Available

For an example to see how to create a custom progress bar in the C1Upload control, see C1Upload's Custom progess bar page in the ControlExplorer sample.

 

You can use the UploadProgress class to make the progress bar more informative for users by specifying progress details such as the name of the current file being uploaded, the total size of the file being uploaded, the amount of the file that has been uploaded, the length of the time that has elapsed since the upload started, estimated time it will take for the file to upload, and the upload speed for the file.

The UploadProgress class provides the following properties that can be used to format the progress details for the custom progress dialog:

 

Property

Description

Active

Gets a value that indicates whether the session is active.

CurrentFile

Gets the current upload file.

EllapsedTime

Gets the elapsed time in a second.

Progress

Gets the progress value ranging from 0.0 to 1.0.

RecievedBytes

Gets the received bytes.

RemainingTime

Gets the remaining time in a second.

Speed

Gets the upload speed.

TotalBytes

Gets the total bytes.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.