显示进度条直到后台进程完成 [英] Show Progress bar till background process completes

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

问题描述

大家好,

我有一个带有按钮控件的网页表单。

点击一个按钮,我开始一个sql作业。这项工作需要将近20分钟才能完成。

我想检查工作进度,如100,已经完成了多少。

我想展示一个页面上的进度条显示作业已完成的百分比。

由于作业需要20分钟才能完成,我应该可以导航到其他页面并执行其他任务/事务。每当我回到我的JOB页面时,进度条都会显示完成的百分比。



我使用telerik网页控件。

任何帮助赞赏。



谢谢,

Lok ..

Hi All,
I have a web form with a button control.
On click of a button, I start a sql job. The job takes almost 20 min to complete.
I want to check the progress of the job like out of 100, how many percent has completed.
I want to show a progress bar on the page showing how many percent the job has completed.
As the job takes 20 min to complete, I should be able to navigate to other pages and do the other tasks/transactions. Whenever I return to my JOB page, the progress bar should show me the percent completed.

I use telerik web controls.
Any help appreciated.

Thanks,
Lok..

推荐答案

<telerik:RadAjaxPanel  LoadingPanelID="RadAjaxLoadingPanel1" ID="RadAjaxPanel1" runat="server">
      <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
   </telerik:RadAjaxPanel>
  <telerik:RadAjaxLoadingPanel   ID="RadAjaxLoadingPanel1" Enabled="true" runat="server" > <h1>upload</h1></telerik:RadAjaxLoadingPanel>









1)把你的按钮放在RadAjaxPanel里面

2)用适当的css代替上传你的图像...



您将在buttonclick上看到您的图像..并且会在代码优惠后自动隐藏...

:)





这是什么,你在寻找;)



百分比遵循这个URL

http://www.telerik。 com / community / forums / silverlight / busy-indicator / inserted-in-percentage-of-progress-busycontent.aspx [ ^ ]


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

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