也可以用另一种方案:页面全前端,ajax给后台asp获取数据然后赋值
<%>%> Dim rs,sql,title,uname,k
set rs=server.createobject("adodb.recordset")
sql="select top 20 * from sjsj order by id desc"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "error!"
else
k=1
response.write "OK!"
" ID 第一项 第二项
do while not rs.eof
response.write "" "&k&" "&rs("id")&" "&rs("kid")&"
k=k+1
rs.movenext
loop
response.write "
end if
rs.close
set rs=nothing
%>