C# UpdateProgress 显示正在运行的代码中的变量?

发布于 2024-08-24 00:06:56 字数 167 浏览 4 评论 0原文

我的 aspx 文件中有一个 updateprogress,其中有一个“标签控件”,其中包含文本“正在加载...”,当我运行代码时,我的代码中有一个“for 循环”。当这个循环继续时,我想在更新进度中显示当前行号,以便用户可以看到在它结束之前还剩下多少行。

我怎样才能做到这一点?

谢谢。

I have an updateprogress in my aspx file, which has a "label control" in it with a text "Loading...", while I run my code, there is a "for loop" in my code. While this loop continues, I want to show the current row number in my update progress, so that user can see how much rows left until it ends.

How can I do that ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨落画卷 2024-08-31 00:06:56

也许在这里使用 BackgroundWorker 比较好?

Maybe it's good to use BackgroundWorker here?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文