标题:解决--Microsoft VBScript 运行时错误 错误 '800a0009' 高手帮忙解决下 ...
取消只看楼主
bisonjob
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-9-9
 问题点数:0 回复次数:1 
解决--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]]
搜索更多相关主题的帖子: Microsoft VBScript 运行 
2008-09-09 16:19
bisonjob
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-9-9
得分:0 
知道问题出在哪里了
2008-09-09 16:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-232339-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.313610 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved