用iframe试试,以前做过SQL 用Like操作符
<!-- 这个是testa.htm -->
<script>
function submitasp()
{
form1.submit();
}
</script>
<form name=form1 action='testa.asp' target=aspform>
<!--好像退格键不触发,你在看看-->
<Input type=text name=keyfield size=12 onkeyup="submitasp()">
<Input type=submit value=ok>
</form>
<iframe name=aspform src="testa.asp"
frameborder=No left=0 height=350 width=100%
>
</iframe>
================================
<!-- 这个是testa.asp -->
<!--#include file="asp/images/count/pubinc/pubFunc.asp"-->
<body bgcolor=pink>
<%
dim keyfield, counter, i
'keyfield = Request.Form("keyfield"
keyfield = Request.QueryString("keyfield"
if trim(keyfield) <> ""
then
tai.open("select * from cnown.wkcode where rownum < 50 AND codid like '%"&
keyfield &"%'"
'SQL语句根据你的数据库更改,我的是Oracle查询速度极快,呵呵,但是数据
量大的话,还是不理想
counter = tai.DataSet.fields.Count
do
while not(tai.dataSet.eof)
for i = 0 to counter - 1
Response.write tai.dataSet.fields(i)
next
Response.write "<br>"
tai.dataset.movenext
loop
end if
%>