用JS做服务器端?
<%
var rs;
rs=new ActiveXObject("ADODB.RecordSet");
rs.Open("select * from Table Where PreamKey=1",con,1,3);
if(rs.eof)
Response.Write("<script language=javascript>alert('没有查询的结果');</script>");
else
Response.Write("<script language=javascript>alert('有查询的结果');</script>");
%>