Welcome Guest Search | Active Topics | Sign In | Register

Progress Bar - Run multiple tasks from single click Options
Doug C
Posted: Tuesday, January 15, 2013 9:25:33 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2013
Posts: 2
Hi. Okay, I have a pretty extensive type app I am writing. Long story short, I am checking out a file from my code source, I am then unzipping that file into a directory, and then finally copying the contents into a separate directory. My goal is to have 4 progress bars here.. The first, will show the checkout process progress. Once that is complete, the next two will show the Zip File progress. Basically, the first bar will show the current file's progress, and the second bar will show the overall zip file progress. Finally, the fourth bar will show the copying progress.

So, I want to be able to click one button on my ASP.Net page, which will call the cmdCheckout_RunTask method in C#. That is working just fine. But, when I am finished running the cmdCheckout_RunTask method, I would like to call the cmdUnzip_RunTask method, without any additional interaction from the user. After Unzip_RunTask is complete, I would finally like to call the cmdCopy_RunTask method, again without any user interaction.

For the most part, I have the buttons themselves, along with the RunTask methods working separately. I would just like to have them called in succession.

And, finally, the Unzip part of this. I can live with one progress bar, for the overall zip file progress, but if I could have two, that would be ideal. I have my code set up, with different loops, one for the bytes of each file, and one for the bytes of the overall file, just need to know how to update each Progress Bar respectively.

Thanks in advance for any insights!
Doug C
Posted: Tuesday, January 15, 2013 10:08:37 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2013
Posts: 2
Okay.. Spent all day on Friday trying to figure this out.. Post this up today, and figure it out immediately! I ended up using the ExtraData parameter, to say that Checkout is Complete. Then used javascript's OnProgress to parse that ExtraData, and then call the next StartTask() method. So, I am good, running the three in succession.

I guess my 2nd part of the question, regarding separate progress bars for the unzipping process, is still open though. Any ideas on that?


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.