Rank: Member Groups: Member
Joined: 5/19/2010 Posts: 22
|
Hello I need a short help to your Prograssbar.
So my problem is, that I use your Messagebox in a first step. Asking, if user is sure before we start with a file transfer... So problem is now... how can I start ProgressBar1_RunTask from my code behinde. I found some VB Examples ... but nothing for C#.
Messagebox Handler: if (e.CommandName == "START_IMPORT") { ... how start ProgressBar1_RunTask from here... }
Thanks for a short example. :)
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, You can not. You must go back to the client side, then start the ProgressBar from the client side with JavaScript. For example, you can put a Label in your page, then set your Label's Text to something like "<script>some javascript</script>" to send any JavaScript code you want to run to the client side. In that script you will then call our ProgressBar's startTask method to start the ProgressBar: http://www.essentialobjects.com/doc/1/jsdoc.public.progressbar.starttask.aspxThat will causes the control go back to the server side one more time and this time it will trigger your RunTask event. Thanks!
|