CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
IBM Rational 系统开发最佳实践工具包 WebSphere MQ 最佳实践 TOP 15
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

网站总提示 “出现一个意外错误” 在线等..

楼主lpy123456(三流鬼)2006-03-16 09:12:49 在 Web 开发 / ASP 提问

网站最近总出错以下的错误:  
   
  Microsoft   VBScript   运行时错误   错误   '800a01fb'    
   
  出现一个意外错误:   'Open'    
   
  p_list.asp,行62    
   
   
  页面刷新后就可以用了,请问大家这是什么原因,怎么解决这个问题呢?  
  问题点数:100、回复次数:9Top

1 楼mingxuan3000(铭轩)回复于 2006-03-16 09:15:27 得分 10

upTop

2 楼KimSoft(革命的小酒天天醉-http://blog.csdn.net/kimsoft/)回复于 2006-03-16 09:23:23 得分 15

p_list.asp,行62   去看看,可能是打开了已经打开的数据库链接。Top

3 楼tigerwen01(小虎)回复于 2006-03-16 09:23:44 得分 15

出现一个意外错误,把DEMO贴出来看看。Top

4 楼lpy123456(三流鬼)回复于 2006-03-16 10:22:01 得分 0

<!--#include   file="conn.asp"-->  
  <!--#include   file="p_chk.asp"-->  
  <!--#include   file="inc/function.asp"-->  
  <!--#include   file="mypages.inc"-->  
  <!--#include   file="inc/admin_code_article.asp"-->  
  <%  
  set   rs=createobject("adodb.recordset")  
  sql="select   *   from   p_product   where   1=1"  
  class1=request("class1")  
  thetype=request("thetype")  
  keyword=request("keyword")  
   
  if   class1<>""   then  
          sql=sql   &   "   and   P_IDA   like   '"   &   class1   &   "%'   "  
  end   if  
  if   thetype<>""     and   keyword   <>""   then  
          sql=sql   &   "   and   "   &   thetype   &   "   like   '%"   &   keyword   &   "%'   "  
  end   if  
   
  isSort   =   Request.QueryString("isSort")  
   
  If   isSort   =   ""   Then  
  TempSort   =   "Desc"  
  Else  
  If   isSort   =   "Desc"   Then  
  TempSort   =   "Asc"  
  ElseIf   isSort   =   "Asc"   Then  
  TempSort   =   "Desc"  
  End   If  
  End   If  
   
  sql=sql   &   "   order   by   BasePrice   "   &   TempSort   &   ""  
   
  if   request("thepage")=""   then  
        thepage=1  
  else  
        thepage=cint(request("thepage"))  
  end   if  
   
  set   mypages=new   page_index  
  mypages.pagesize=15  
  mypages.thepage=thepage  
  mypages.T_A="class1"  
  mypages.A=class1  
  mypages.T_B="keyword"  
  mypages.B=keyword  
  mypages.T_C="isSort"  
  mypages.C=isSort  
  mypages.T_D="thetype"  
  mypages.D=thetype  
   
   
  rs.open   sql,conn,1,1  
  if   not   (rs.eof   and   rs.bof)   then  
        mypages.dopages(rs)  
        showpage1=mypages.getpages()  
  end   if  
  %>Top

5 楼lpy123456(三流鬼)回复于 2006-03-16 10:22:19 得分 0

rs.open   sql,conn,1,1   就是第62行  
  Top

6 楼tigerwen01(小虎)回复于 2006-03-16 16:16:59 得分 30

set   rs=server.createobject("adodb.recordset")Top

7 楼lpy123456(三流鬼)回复于 2006-03-16 22:55:34 得分 0

小虎哥,这句话也有的..Top

8 楼lpy123456(三流鬼)回复于 2006-03-17 09:19:54 得分 0

是这样,就是只要打开   数据库的地方   网站就总出错,比如用   conn.execute   也提示出错意外这个错误   rs.open   方法时也是,请问大家遇到过这种情况吗?Top

9 楼chenyu112(晨雨)回复于 2006-03-17 10:05:25 得分 30

没遇到过,是不是你的数据库链接最后没有关闭啊?Top

相关问题

  • 提示160G硬盘意外拔出错误
  • 为什么总是提示错误?
  • 总是提示错误,错在哪呀??
  • 为什么总提示“insert into”错误!!
  • 为什么总是提示错误???
  • 错误提示!
  • 错误提示
  • Win2000 Internet服务管理器不能使用,提示意外错误!
  • 调用一个WebService后有错误提示:基础连接已关闭,接收时发生意外错误
  • 用企业管理器打开表时,提示“在执行该操作时发生意外错误”

关键词

  • 数据库
  • 网站
  • sql
  • mypages
  • issort
  • thepage
  • 错误
  • thentempsort
  • thetypers
  • 出错

得分解答快速导航

  • 帖主:lpy123456
  • mingxuan3000
  • KimSoft
  • tigerwen01
  • tigerwen01
  • chenyu112

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo