The information in this article applies to:
SUMMARYWhen SQL Server queries take a great deal of time to process in an ASP page, the Web browser may be left with a blank page while information is gathered from the database. If you use Internet Explorer's Dynamic HTML features, a message can be displayed to a Web browser while the data is processed and then changed or erased when the page is finished being rendered. MORE INFORMATION
The following example ASP code uses a system Data Source Name (DSN) that points to the Adventure Works example Microsoft Access database that shipped with IIS 3.0, but can be tested with any data source by changing the following two lines:
strSQL = "SELECT * FROM <Table Name>" The following example page displays a message to the browser while loading the data, then changes that message to the record count after the data is loaded. Copy and save the following ASP code in your InetPub\Scripts folder as DhtmTest.asp, and then test the page by browsing to http://localhost/scripts/DhtmTest.asp.
The above code can easily be modified to erase the message from the page by changing the script section to read as follows:
Additional query words: jscript javascript scripting dhtml asp html
Keywords : |
Last Reviewed: May 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |