“正在加载,请稍候"单击图像按钮后的页面-ASP [英] "Loading please wait" page after imagebutton click - ASP
本文介绍了“正在加载,请稍候"单击图像按钮后的页面-ASP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有按钮的页面,该按钮用于处理文件,需要一些时间才能完成.为了更加用户友好,我想添加一个正在加载,请稍候"页面,以便用户知道该事件正在处理中.如何在ASP中做到这一点?
干杯,
Hi,
I have a page with a button meant to process a file and it takes sometime to finish. To be more user friendly, I want to add a "loading, please wait" page so that the user is aware that the event is being processed. how can I do that in ASP?
Cheers,
推荐答案
1.您可以使用UpdatePanel
和UpdateProgress
之类的AJAX服务器控件来做到这一点.您还需要将文件处理移至updatepanel
内部,以便它也可以异步发生并让用户看到您的消息.
检查此内容以查找详细信息:
面向初学者的AJAX(第1部分)-了解ASP.NET AJAX服务器控件 [ ^ ]
1. You can do that using AJAX server controls likeUpdatePanel
andUpdateProgress
. You will also need to move your file processing inside theupdatepanel
so that it will also happen asynchronously and letting the user see you message.
check this to find details:
AJAX for Beginners (Part 1) - Understanding ASP.NET AJAX Server Controls[^]
这篇关于“正在加载,请稍候"单击图像按钮后的页面-ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文