為了提高Asp程序的性能
<%
Class wawa_app_getrows
public Function wawa_Get_List(strapp
Dim wawa
wawa = Application(strapp)
If isempty(wawa) Then
wawa = wawa_Get_Rows(strconn
Application(strapp) = wawa
End If
wawa_Get_List = wawa
End Function
public Function wawa_Get_Rows(strconn
Dim rs_wawa
Set rs_wawa = CreateObject("ADODB
rs_wawa
wawa_Get_Rows = rs_wawa
rs_wawa
Set rs_wawa = Nothing
End Function
End Class
%>
<!
<%
dim strapp
strapp="employee"
strsql="SELECT EmployeeID
strconn="Driver={sql server};server=
set wawa_temp=new wawa_app_getrows
arr_wawa=wawa_temp
%>
<%
Response
Dim i
Rows=Ubound(arr_wawa
Flds=Ubound(arr_wawa
If Rows>=
For i=
Response
For j=
Response
Next
Response
Next
Else
Response
End If
Response
%>
From:http://tw.wingwit.com/Article/program/net/201311/14184.html