请问哪位大哥大姐能帮我找出这个程序中的问题 <% On Error Resume Next set rs=server.createobject("adodb.recordset") set conn=server.createobject("adodb.connection") DBPath = Server.MapPath("newsxp.asa") conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath %> <% Dim curpage, pagesize,numpages pagesize=10 if Request.Querystring("page")<>"" then curpage=CInt(request.Querystring("page")) else curpage=1 end if rs.ActiveConnection =conn; rs.Source = "SELECT * FROM jxgldc"; rs.CursorType = 0; rs.CursorLocation = 2; rs.LockType = 1; rs.Open(); rs.pagesize=pagesize numpages=rs.pagecount if curpage>numpages then curpage=numpages rs.Absolutepage=curpage
Dim strtable strtable=rs.GetString(adClipString,pageSize,"</td><td>","</td></tr><tr><td>") strtable=left(strtable,len(strtable)-8) response.write "<table border=1><tr><td>"&strtable&"</td></tr></table><hr>" if curpage>1 then response.write "<a href=""ckjxgldc.asp?page="&(curpage-1) response.write """>上一页</a><br>" end if if curpage<numpages then response.Write "<a href=""ckjxgldc.asp?page="&(curpage+1) response.write """>下一页</a><br>" end if rs.close conn.close set rs=nothing set conn=nothing
%> 谢谢!