无法获取asp:标签以显示新文本 [英] Cant get asp:Label to show new text

查看:112
本文介绍了无法获取asp:标签以显示新文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp:button,它产生一个线程来执行长时间运行的查询.在按钮单击事件中,我希望能够将一些文本发送到< asp:label>表示查询正在进行中",但我看不到发送给标签的文本.我还想在查询完成后向标签发送一条消息.
线程完成后,我确实看到了完整的消息.在我看来
创建新线程将导致不显示查询进行中"标签文本.

I have a asp:button that spawns a thread to execute a long running query. In the button click event, I want to be able to send some text to a <asp:label> indicating that the "query is in progress" but I''m not seeing the text that I sent to the label. I also want to send a message to the label after the query is complete.
I do see the complete message when the thread is finished. It appears to me that
the creation of the new thread is causing the "query is in progress" label text not to be shown.

推荐答案

您是否检查了UpdateProgress Control
UpdateProgress控件简介 [ UpdateProgress控件 [
Did you checked UpdateProgress Control
Introduction to the UpdateProgress Control[^]
UpdateProgress control[^]


这篇关于无法获取asp:标签以显示新文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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