哪位大侠帮看一下
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!--#include file="Connections/conn.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_conn_STRING
Recordset1.Source = "SELECT * FROM 宿舍在住信息"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
set fs=createobject("scripting.filesystemobject")
set myfile=fs.createtextfile (server.MapPath("0.xls"),true)
myfile.writeline("姓名" & chr(9) & "性别")
%>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<% myfile.writeline((recordset1.fields.item("在住姓名").value) & chr(9) & (recordset1.fields.item("在住性别").value))%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
<% response.Write("ok")%>
<% end if %>
<form id="form1" name="form1" method="post" action="xls.asp">
<div align="center">
<input type="button" name="Submit" onclick=javascript:windoe.location="xls.asp?type=xls" value="生成" />
</div>
</form>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
哪位大侠帮看一下上面代码老是报错,缺少语句,end if