解决--Microsoft VBScript 运行时错误 错误 '800a0009' 高手帮忙解决下在线等
[bo]报告如下错误:[/bo]Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 运行时错误 错误 '800a0009'
下标越界: '[number: 1]'
C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\桌面\UNDERWEARCHANNEL\UCADMIN\../page2.asp,行15
-------------- 错误页面代码如下 -----------------------
<%
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
end if
rs.close
set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一页 下一页链接
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
query = Split(Request.ServerVariables("QUERY_STRING"), "&")
For Each x In query
a = Split(x, "=")
If StrComp(a(0), "page", vbTextCompare) <> 0 Then
temp = temp & a(0) & "=" & a(1) & "&"
End If
Next
Response.Write("<table " & Table_style & ">" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=right>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write ("First " & vbCrLf)
Response.Write ("Previous " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1>First</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">Previous</A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write ("Next " & vbCrLf)
Response.Write ("Last " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">Next</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">Last</A> " & vbCrLf)
end if
Response.Write(" Page:" & page & "/" & pageCount & "页" & vbCrLf)
Response.Write(" A total of" & iCount & "条" & vbCrLf)
Response.Write(" Go To" & "<INPUT TYEP=TEXT NAME=page SIZE=1 Maxlength=5 VALUE=" & page & ">" & "页" & vbCrLf & "<INPUT type=submit style=""font-size: 9pt"" value=GO class=b2>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%>
[[it] 本帖最后由 bisonjob 于 2008-9-9 16:39 编辑 [/it]]