日期:2014-05-17  浏览次数:20779 次

关于ASP显示调用的问题[求助] 高手请进
写了一个点击文字city(北京)直接调用数据库中与city对应的所用name的值  

已经实现了调用,实现页left_products.asp我现在要在另一文件夹下aa/fenzhan/henan/中index.asp调用left_porducts.asp     在指定的table的 <td> 中 <!--include   file= "../../member/left_products.asp--> "   运行aa/fenzhan/henan/下的index.asp页面电脑反映非常慢,就没有反映了,求高手指点

left_porducts.asp

<%

city=trim(request( "city "))
oRs.Open   "Select   *   From   display   where   city= ' "&city& " ' ",Conn,1,1
if   not   oRs.eof   then

Do   while   Not   oRs.Eof
  response.write   "*   <a   href= 'person/mendian.asp?id= "   &   oRs( "ID ")   &   " '   target= '_blank '> "   &   oRs( "name ")   &   "的门店 </a> <br> "
  oRs.movenext
loop

end   if
oRs.Close  
%>    


------解决方案--------------------
楼主的代码没有什么问题,楼主看一下调用的路径吧
------解决方案--------------------
LZ你看这个 <!--include file= "../../member/left_products.asp--> " ???
好象不对吧,引号怎么跑后面去了,你检查一下
------解决方案--------------------
这两个文件中有没有On Error Resume Next这句?有的话注释掉,我估计是这个问题……页面代码可能在哪里有错误,但是这句却要强制继续往下运行,导致服务器cpu资源占用达到100%。