在窗口应用程序中显示处理Web应用程序中的消息 [英] Show Processing messages in web application as like in window application
本文介绍了在窗口应用程序中显示处理Web应用程序中的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
当窗口应用程序显示处理消息时(例如,在连接时使用Gtalk然后显示连接到服务器等等)
我想在我的网络应用程序中显示这种类型的自定义消息我怎么能这样做我试过这个代码。
受保护 void Page_Load( object sender,EventArgs e)
{
lbl_message.Text = 第1部分数据;
Thread.Sleep( 10000 );
lbl_message.Text = 第2部分数据;
}
但它直接显示最后一个标签信息(第2部分数据)
请帮助
谢谢
Srishti
解决方案
您正在服务器上完成所有操作。浏览器不知道你在服务器上做了什么。
为了达到这个目的,你可以使用UpdateProgress
或blockUI
Hello,
As window application show processing messages(e.g-in Gtalk when connect then show connecting to server... etc)
I want to show this type of custom messages in my web application how can i do this i tried this code.
protected void Page_Load(object sender, EventArgs e)
{
lbl_message.Text = "Part 1 Data";
Thread.Sleep(10000);
lbl_message.Text = "Part 2 Data";
}
But it show last label message ("Part 2 Data") directly
Please help
Thanks
Srishti
解决方案
You are doing it all on server. Browsers are not aware what you are doing at the server.
In order to achieve this, you can either make use ofUpdateProgress
orblockUI
.
这篇关于在窗口应用程序中显示处理Web应用程序中的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文