Some of the previously collected data---(a new Idea) use a "Static" ASP page to improve the performance of your server
Source: Internet
Author: User
Use a "Static" ASP page to improve the performance of your server
Usually, when you display the information in a database, you use a dynamic page to generate it.
This has no effect on the performance of a small web site or when the size of the database is not large.
But when users have frequent access to a database with a large amount of data, the system is still able to withstand it.
The following describes a "static" ASP technology to solve this problem.
For example, now this has a personnel database, structured as follows:
ID, company Email Phone
The usual approach is as follows:
Contact.asp
<table cellspacing=0 cellpadding=0>
<%
Set query = Getdb.execute ("SELECT * from Contacts ORDER by FirstName, LastName")
Do as not query.eof
Response.Write "<tr><td><a href=" ""
Response.Write "detail.asp?id=" & Query ("id")
Response.Write "" > & Query ("a") & "& Query (" Last ")
Response.Write "</a></td></tr>"
Query.movenext
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service