大家帮我看看这段阿
这段代码我一执行就cpu 100% 但是我把while语句换成if语句就行了。估计好像是死循环了。可是找不到原因啊。
<!--#include virtual="inc/conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javaScript">
<!--
function chkclass2(selectname){
if (selectname=="yes")
{
return document.form1.classtype.disabled=false;
}
else
{
return document.form1.classtype.disabled=true;
}
}
//-->
</script>
</head>
<body>
<form name="form1" method="post" action="">
<table width="600" border="1">
<tr>
<td width="78">新栏目名称</td>
<td width="138"><input name="name" type="text" id="name"></td>
<td width="362"> </td>
</tr>
<tr>
<td>是否是子栏目</td>
<td><input type="radio" name="chkclass" value="yes" onclick="chkclass2(this.value);" checked>
是
<input type="radio" name="chkclass" value="no" onclick="chkclass2(this.value);">
否</td>
<td>所属栏目<select name="classtype" >
<%
set rspid=server.CreateObject("ADODB.Recordset")
sql="select * from class where pid=0"
rspid.open sql,conn,2,2
While not rspid.eof
%>
<option><%=rspid("name")%></option>
<%
wend
%>
</select></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>