Welcome Guest Search | Active Topics | Sign In | Register

Redirecting a webform with ProgressBar Options
Paulo Mondragon
Posted: Thursday, June 5, 2008 9:46:34 AM
Rank: Advanced Member
Groups: Member

Joined: 6/4/2008
Posts: 38
I have this doubts using the progres bar control:



1. In my webform I have a button that makes all the insert procedure, I want my progress bar be invisible until I make click in that button

2. When the ProgressBar1_RunTask sub ends, I want to redirect to another webform but nothing happens when my code reaches the line: Response.Redirect("frmWOConfirmacion.aspx")

eo_support
Posted: Thursday, June 5, 2008 10:16:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

As for the first question, you will need to use DHTML and JavaScript to do that. It will be something like this:

Code: HTML/ASPX
<div id="pbHolder" style="display:none">
    …. Put progress bar here…
</div>

<input type="button" value="Start" onclick="start()" />


Code: JavaScript
Function onstart()
{
     //Show the progress bar
    document.getElementById(“pbHolder”).style.display = “block”;

    //start the progress bar
    eo_getObject(“ProgressBar1”).startTask();
}


As for the second question, The only method you can call is e.UpdateStatus. So whatever you do must be based on e.UpdateStatus. Typically you would use e.UpdateStatus to pass information (for example, your Url) to the client side and then check the Url and act correspondingly on the client side. This sample demonstrated how to pass information to the client side:

http://www.essentialobjects.com/Demo/Default.aspx?path=ProgressBar\_i2

You can then call window.open on the client side to redirect to the desired Url.

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.