📄 xl.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/access.asp" -->
<%
Dim xl
Dim xl_numRows
Set xl = Server.CreateObject("ADODB.Recordset")
xl.ActiveConnection = MM_access_STRING
xl.Source = "SELECT * FROM smallclass"
xl.CursorType = 0
xl.CursorLocation = 2
xl.LockType = 1
xl.Open()
xl_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
xl_numRows = xl_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table border="1">
<tr>
<td>id</td>
<td>smallclass</td>
<td>id_bigclass</td>
</tr>
<% While ((Repeat1__numRows <> 0) AND (NOT xl.EOF)) %>
<tr>
<td><%=(xl.Fields.Item("id").Value)%></td>
<td><%=(xl.Fields.Item("smallclass").Value)%></td>
<td><%=(xl.Fields.Item("id_bigclass").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
xl.MoveNext()
Wend
%>
</table>
</body>
</html>
<%
xl.Close()
Set xl = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -