Page execution requires a prompt information to users for a long time

xiaoxiao2021-03-06  104

When a page execution time is longer, such as queries of large data, etc. The following method can be used to display a prompt.

Use an example scene:

The user wants to generate an XML file to report to the National Bureau, and this amount of data is very large, querying the data, when writing XML files, how to give the user a good reminder that. If the reporting data is currently being analyzed. After the analysis is complete, the user prompts "The currently written XML file", "currently being compressed XML file", etc. A prompt to the user after the server is completed at a stage. Let users know where they are here. This will let the user know that there is no crash.

/ / This method is called in the Page_Load method.

Private void loadingPLAN ()

{

String loadText = "Load the page, please wait patiently";

Response.write ("

");

Response.write ("_");

Response.write ("");

Response.write ("