Classic ASP: Please Wait page while processing code

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:23:35

问题


A form on page1.asp submits to page2.asp. Page2 takes say a minute to do it's work.

To the end user, the browser stays on page1 while it waits for the response from page2.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/8733896/classic-asp-please-wait-page-while-processing-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!