Progress Bar

 Sample Home | Reset Form | Rendered at: 07/24/2008 03:02:41 AM



Waiting to get started

This example demonstrates using the wwWebProgressBar control to show progress of an operation running on the server. The server form has three methods: StartProcessing, UpdateProgress and ProcessComplete, which are fired from script code using the wwWebAjax control that is part of the Progressbar control.

The code pings this server once a second and requests updated status information - an object returned from the server that contains a message a percentage and completion and cancellation status in this case. If complete the client calls the server again to ProcessComplete which returns a final result in the form of a DataGrid generated string to the client.

All of this happens in the context of a single page, without post backs. Notice that during the update process the page remains live so you can for example set the percentage manually with the percentage button. The value will be set briefly until the next server update brings back more information and updates the progress bar again.