显示进度条
问题描述:
->通过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