急!在javascript中如何将记录集中的数据显示到下拉列表中
<%@language=JavaScript%><!-- #include file="pubFunction.asp" -->
<LINK href='table.css' rel=stylesheet type=text/css><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<% if (Session("userId") == null)
Response.Redirect ("default.asp")
%>
<html>
<body bgcolor="#FFFFCC">
<form name=form1 Action="insert.asp" method="post" >
<h2><center><font size=5 color=red><b>数据库录入</b></font><hr></center></h2>
<p>
<table width="94%" border="0" cellspacing="0" cellpadding="0" height="289">
<tr>
<td width="119">卫星类别: </td>
<td width="355">
<%var wx = Request.QueryString("wx")%>
<%
var conn = connectToDB("北京接收部数据库")
var rs1=new ActiveXObject ("ADODB.Recordset");
sql1="select * from 卫星表"
rs1.open (sql1,conn,1,3)
%>
<select size="1" name="wx" id="wx" style="background-color:rgb(238,237,216)">
<%rs1.movefirst
while(not rs1.eof)
%>
<option value="<%=rs1("卫星")%>"><%=rs1("卫星")%></option>
<%
rs1.movenext()
%>
</select>
</td>
</tr>
</table>
<p>
<input type=submit value="提交">
<input type=reset value="重置">
</form>
<hr>执行情况:<font color = red><% = Request.QueryString ("csResult")%></font>
</body>
</html>
错误类型:
错误类型:
Microsoft JScript 编译错误 (0x800A03EE)
缺少 ')'
/input.asp, line 28, column 10
while(not rs1.eof)
这段怎么改?
哪位大侠帮忙看看,谢谢啦!!!!