我以前使用个插件来控制字符长度的时候都很正常,可这次用的时候却出现这样的错误
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
/green/bbs/bbs_frame.asp, 第 62 行
我重新做过,可结果依然。
源代码如下:
<%@LANGUAGE="VBSCRIPT"%>
<%
set re01 = Server.CreateObject("ADODB.Recordset")
re01.ActiveConnection = MM_fourms_STRING
re01.Source = "SELECT id, subject, name, email, time FROM book ORDER BY id DESC"
re01.CursorType = 0
re01.CursorLocation = 2
re01.LockType = 3
re01.Open()
re01_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = 6
Dim Repeat1__index
Repeat1__index = 0
re01_numRows = re01_numRows + Repeat1__numRows
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
Untitled Document<%
While ((Repeat1__numRows <> 0) AND (NOT re01.EOF))
%>
□ "> <% =(DoTrimProperly((re01.Fields.Item("subject").value), 12, 0, 1, "..")) %>
|
"> <% =(DoTrimProperly((re01.Fields.Item("name").value), 6, 0, 1, "..")) %> |
<%= DoDateTime((re01.Fields.Item("time").value), 0, -1) %> |
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
re01.MoveNext()
Wend
%>
<%
re01.Close()
%>