简单的办法就是插入asp文件中写入:Response.Write "document.write('"&sql&"');"
sql="update bbs1 setxh='"&xh&"',cj='"&cj&"' where id="+IID rs.Open sql,conn,1,1 改成conn.execute("update bbs1 set xh='"&xh&"',cj='"&cj&"' where id="&IID)后面的set rs=nothing 不要