显示进度条 [英] Display Progress bar

查看:136
本文介绍了显示进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

->通过showmodalDialog打开popup.aspx.
-> popup.aspx是包含IFrame的通用页面.根据查询字符串设置IFrame的来源
->通过从Javascript调用WCF服务来加载源页面中的控件.
->我想显示进度条,直到popup.aspx完全加载.

-> Opening popup.aspx though showmodalDialog.
-> popup.aspx is generalized page which contains IFrame. The source of the IFrame is set based on the query string
-> The controls in the source page is loaded by calling WCF service from Javascript
-> I want to display the progress bar until the popup.aspx is loaded completely.

推荐答案

您将在客户端获得Web服务调用代码.下面的代码将有助于显示进度条.

You will have the web service call code at client side. Below code will help to display the progress bar.

myServiceReference = new myService.myServiceClient();

    myServiceReference.GetUserCredentialsCompleted += (sender, args) =>
    {
// Progress bar completed value
    }
    myServiceReference.GetMethodAsync(ID);
    // Progress bar started value


这篇关于显示进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆