【www.gdgbn.com--页面特效】

使用一个“静态”的ASP页面来改进你的服务器的性能
通常大家显示一个数据库中的信息时都是使用动态页面来生成的,
这对于一个小网站或者当数据库内的容量不大时,系统的性能并没有什么影响。
但是当用户要频繁地访问一个数据量很大的库时,系统是不是还能够承受得了了。
下面介绍一种“静态”ASP技术来解决这个问题。
例如现在这个有一个人员资料库,结构如下:
ID    First     Last    Company        Email    Phone
常规的办法如下:
contact.asp
              
              <%
                 set query = getdb.execute("select * from contacts order by firstname, lastname")
                 do while not query.eof
                  response.write "                  response.write "detail.asp?id=" & query("id")
                  response.write """>" & query("first") & " " & query("last")
                  response.write ""    
                  query.movenext

本文来源:http://www.gdgbn.com/wangyetexiao/2935/