servercall期间主页中的进度更新 [英] progress updates in masterpage during servercall

查看:67
本文介绍了servercall期间主页中的进度更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我有一个运行报告的页面。在报告生成期间,我设置了更新状态。这些状态触发主页接收的事件。该主页包含一个gridview组件,显示用户在系统中完成的最后5个操作。

只有在调用报告后,我才会看到gridview被endstatus填充。

gridview位于UpdatePanel中。



- 如何在页面忙于生成报告时显示页面中的所有状态?



我的第二次尝试是使用Timer对象(AJAX计时器)。

如何使用报表页面中的javascript启动和停止主页面上的计时器?



现在尝试使用UpdateProgress ......仍然没有成功。谁可以帮帮我?

Hi everyone.

I have a page that runs a report. During the report generation I set update statusses. These statusses fire an event which the masterpage receives. This masterpage holds a gridview component that shows the last 5 actions done in the system by a user.
Only after the call to the report I see the gridview being filled with the endstatus.
The gridview is in an UpdatePanel.

- How can I show all the status in the page while it is busy generating the report?

My second try was with using a Timer object (AJAX timer).
How to start and stop a Timer that is on the masterpage with javascript from the reportpage?

trying now with an UpdateProgress...still no succes. Who can help me out?

推荐答案

步骤:

1.使用Asyn页面。

2.存储会话中的状态值。

3.创建WebMEthod以从Session获取状态值。

4.启用WebMethod会话。

5 。编写js代码以对WebMEthod进行ajax调用以检索状态值。

5.向最终用户显示状态。
Steps:
1. Use Asyn page.
2. Store the status value in Session.
3. Create WebMEthod to get status value from Session.
4. Enable Session for the WebMethod.
5. Write js code to make ajax call to the WebMEthod to retrieve the status value.
5. Show the status to end-user.


这篇关于servercall期间主页中的进度更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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