我这样测试过,iis5下不会报错。
<!--#include virtual="/include/conn.asp"-->
<%
set rs = a()
response.write rs(0)
rs.close
set rs = nothing
function a()
dim objRs
set objRs=server.createobject("adodb.recordset")
objRs.open "select * from taMain",conn,1,1
set a = objRs
end function
%>