How to display progress in the client browser for a long-loaded ASP.NET page?

zhaozj2021-02-16  72

For ASP.NET pages for load time, we can display progress bars in the client browser to display the page is being loaded. Below is the specific implementation process:

New project, the name is WebPortal, select the Visual C # item or Visual Basic project in the project type; select an ASP.NET web application in the template type; http: // localhost / webportal; add new items: The name is showprogress web form. Add any other web server controls on your Web Form ShowProgress.aspx. Right-click on ShowProgress.aspx, click "View Code", in the top: Visual C # .NET Code Using System.Threading;

Visual Basic .NET Code Imports System.Threading

Enter: Visual C # .NET code response.write ("

"); response.write (""); response. Write ("