经典ASP:请在处理代码时等待页面 [英] Classic ASP: Please Wait page while processing code
问题描述
page1.asp
上的表单提交给page2.asp
. Page2需要一分钟才能完成工作.
A form on page1.asp
submits to page2.asp
. Page2 takes say a minute to do it's work.
对于最终用户,浏览器在等待page2响应时停留在page1上.
To the end user, the browser stays on page1 while it waits for the response from page2.
我该如何显示一个请稍候"页面-最好的方法就是仅使用javascript更改page1并在按下提交"按钮时说请稍等"?
How can I show a please wait page instead - is the best way just using javascript to change page1 to say Please Wait when the submit button is pressed?
推荐答案
您只需要在用户浏览到下一页时显示请稍候onClick
,然后确保在第2页中设置Response.buffer = True
.这样一来,在页面处理完成之前,任何服务器输出都不会进入浏览器.
You need to just display your Please Wait onClick
when the user browses to the next page, and then make sure to set Response.buffer = True
in your Page 2. That will prevent any server output from going to the browser until the page is finished processing.
这篇关于经典ASP:请在处理代码时等待页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!