Welcome Guest Search | Active Topics | Sign In | Register

ProgressBar1_RunTask Start from code behinde (.net C#) Options
Erni
Posted: Tuesday, December 4, 2012 9:54:13 AM
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. :)
eo_support
Posted: Tuesday, December 4, 2012 10:22:41 AM
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.aspx

That will causes the control go back to the server side one more time and this time it will trigger your RunTask event.

Thanks!


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.