|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
I would like to raise the ProgressBar RunTask event from another server-side function. Is there a way to do this??? If so, is there any example code demonstrating how to do this???
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thanks for posting in the forum. Please let us know whether you have a license for any of our product yet. We do not provide free tech support for the free controls. So you must be a paid user in order to receive support on the progress bar control.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
I did not see a license for the ProgressBar control. Is there another license I should purchase in order to get support for that control???
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can purchase any of our products to qualify as a "paid user". Our progress bar control is quite popular because it's free, however we cannot afford to offer free tech support for it because it's widely used. For that reason, we limit tech support on our free controls to paid user only.
If you are not interested in any of our other product, you can pay a support fee at $30/ticket. That is a one-time non-refundable charge that needs to be paid in advance. Please let us know if you would like to go with this option so that we can create a payment link for you.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
Yes... Please create a one-time $30 payment link for me.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We've sent a payment link to you through PayPal. You do NOT need a PayPal account in order to completely the payment. Once the payment is cleared, we will respond your original question and provide sample code if necessary.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
I just made the PayPal payment. Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, The following code demonstrates how to do this:
Code: HTML/ASPX
<eo:ProgressBar runat="server" id="ProgressBar1"
BackgroundImage="00060401" BackgroundImageLeft="00060402"
BackgroundImageRight="00060403" ControlSkinID="None"
IndicatorImage="00060404" ShowPercentage="True"
Value="0" onruntask="ProgressBar1_RunTask">
</eo:ProgressBar>
<asp:Literal runat="server" ID="ltScript"></asp:Literal>
<asp:Button runat="server" ID="Button1" Text="Start"
onclick="Button1_Click" />
Code: C#
protected void Button1_Click(object sender, EventArgs e)
{
//The following code renders a piece of JavaScript code to the
//the client that calls the ProgressBar's client side JavaScript
//interface to start the ProgressBar
ltScript.Text = string.Format(@"
<script type='text/javascript'>
setTimeout(function()
{{
eo_GetObject('{0}').startTask();
}}, 100);
</script>
", ProgressBar1.ClientID);
}
protected void ProgressBar1_RunTask(
object sender, EO.Web.ProgressTaskEventArgs e)
{
//Put your event handling code here
}
Please let us know if you have any questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
Thanks!!! That looks pretty straightforward. I will give it a try and let you know how it goes... It may be a couple of days, before I can actually try it.
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
I just got a chance to try it... IT WORKED LIKE A CHARM!!! THANK YOU!!!
For the record, I think this function is well worth a fee...
I do have a somewhat related question... This MAY already be addressed in the demo code somewhere, I'm not sure... At the very end of the RunTask function... after all the processing has been competed, I want to execute a Response.Redirect to another page... My response.redirect does not seem to happen... Can you explain how to remedy this problem???
|
|
Rank: Newbie Groups: Member
Joined: 10/22/2011 Posts: 9
|
I found a solution for the redirect problem... I put a window.location statement in the javascript code right after eo_GetObject('{0}').startTask(); like this...
Code:
protected void Button1_Click(object sender, EventArgs e) { //The following code renders a piece of JavaScript code to the //the client that calls the ProgressBar's client side JavaScript //interface to start the ProgressBar ltScript.Text = string.Format(@" <script type='text/javascript'> setTimeout(function() {{ eo_GetObject('{0}').startTask();window.location='MyProjects.aspx'; }}, 100); </script> ", ProgressBar1.ClientID); }
|
|