Welcome Guest Search | Active Topics | Sign In | Register

(JS)ProgressBar.startTask() cann't trigger server side task Options
Vurt
Posted: Friday, August 21, 2009 5:21:19 AM
Rank: Newbie
Groups: Member

Joined: 8/21/2009
Posts: 1
I've wrote a aspx page using EO progress bar control, and this page works fine when i run it directly. but if i open this page by using window.showModalDialog() , when i click "Start" button, it cann't trigger server side task and ClientSideOnTaskDone event be triggered immediately.
follow is the codes:
Code: HTML/ASPX
<script>
      function start_progressBar() {            
            var div = document.getElementById("progressDiv");
            div.style.display = "block";

            var btn = document.getElementById("btnOK");
            btn.disabled = true;
            var pb = eo_GetObject("ProgressBar");
            pb.startTask();
        }

        function done_ProgressBar() {
            window.close();
        }
    </script>
<div id="progressDiv"  style="display:none">
        <eo:ProgressBar ID="ProgressBar" runat="server"
            Width="550px" onruntask="ProgressBar_RunTask"
 ClientSideOnTaskDone="done_ProgressBar"  >
        </eo:ProgressBar>
        </div>
            <input id="btnOK" type="button" onclick="start_progressBar()" value="Start" />

follow is server side task code(C#):
Code: C#
protected void ProgressBar_RunTask(object sender, ProgressTaskEventArgs e)
        {
            try
            {
                e.UpdateProgress(5);
                SyncUpServer();
                e.UpdateProgress(100);
            }
            catch (Exception ex)
            {
                ExceptionHandle(ex);
            }
        }

thanks very much for help!
eo_support
Posted: Friday, August 21, 2009 7:16:40 AM
Rank: Administration
Groups: Administration

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

Unfortunately we do not provide tech support for our free controls. You can compare your code with the sample code and see if you can find any difference. You can also purchase a license to receive support on all controls, including the free controls.

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.