Hi,
UpdateProgress takes two parameters. The first parameter is a number. This parameter is used by the progress bar. You use this parameter to tell the progress bar where the progress indicator should move to.
The second parameter is a string. This parameter is for you to use. The progress bar does not use this parameter in any way (that's why this parameter is optional).
In order to use the second parameter, you will need to know JavaScript. The flow is like this:
1. You pass a value through the second parameter. Since the progress bar does not use this parameter, you would pass whatever makes sense to you. For example, you can pass "Hello!" to the second parameter;
2. UpdateProgress takes "Hello" and pass it to the client side for you. It will then call your ClientSideOnValueChanged handler (you will need to open the sample project source code to see this). This is a JavaScript handler you would provide (again, check the sample source code for the correct syntax). Once you provide this handler, the progress bar would call your handler every time the indicator moves (that is, every time UpdateProgress is called on the server side);
3. Inside your ClientSideOnValueChanged handler (note now you are on client side with JavaScript), you will be able to retrieve the value you passed down from the server through UpdateProgress. You can use then this value whatever way you want;
Our sample uses the second parameter to pass an additional status string to the client and then use JavaScript to display this to the client (You will see it displays “Running” after you click the Start link).
The point is, you can only do two things inside RunTask: 1. Update the progress indicator; 2. Pass an additional value to the client side for your JavaScript to use. So you will be passing this value in your server side code (C# or VB.NET), and use this value in your client side code (JavaScript). Passing what value and how to use that value would be entirely up to you.
You may also want to go through this page if you are not already familiar with our client side JavaScript interface:
http://doc.essentialobjects.com/ViewDoc.aspx?book=1&t=clientapi_howto.htmlHope this helps.
Thanks