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

到底那里出错拉?请帮帮忙!
问题是新闻列表中aa.asp无法显示出bb.asp的数据?要如何改?(line1.gif为下划线背景图片004.gif为一个图标   )
代码如下-----aa.asp   中
<body>
<table   width= "760 "   border= "0 "   cellspacing= "0 "   cellpadding= "0 ">
    <tr>
        <td   colspan= "2 "> xxxxx </td>
    </tr>
    <tr>
        <td   width= "231 "> <div   align= "center "> <img   src= "images/004.gif "   width= "60 "   height= "60 "   /> </div> </td>
        <td   width= "529 "   background= "images/line1.gif "> <script   src= "bb.asp?typeid=1 "> </script> </td>
    </tr>
</table>
</body>

---bb.asp

<!--#include   file= "conn.asp "-->
<%
typeid=request.QueryString( "typeid ")

    '定义Recordset对象
    Set   rs=Server.CreateObject( "ADODB.Recordset ")
    '设置rs的ActiveConnection属性,绑定到连接
    Set   rs.ActiveConnection   =   Conn
    '设置游标类型
    rs.CursorType   =   3
    '执行SQL语句,读取所有的用户数据,并保存结果到记录集对象rs中
    rs.Open   "Select   *   from   news   where   typeid= "&typeid
    rCount   =   rs.RecordCount
    '循环显示所有的用户数据,同时画出表格
    if   rs.eof   and   rs.bof   then   %>
          document.write( '没有 ');
          <%   else    
do   while   not   rs.eof

title=trim(rs( "title "))
title=replace(title, " <br> ", " ")
%>
document.write( '
          <A   href= "ReadNews.asp?id= <%=rs( "id ")%> "   title= " <%=title%> "   target= "_blank "> <%=left(title,5)%> </A> </font> ');

<%
end   if
rs.movenext  
loop  
end   if
Rs.Close
set   Rs=nothing
%>




------解决方案--------------------
不明白,直接说你想实现什么功能。
------解决方案--------------------
问题太含糊了
------解决方案--------------------
用iframe就好做了!!!!!

------解决方案--------------------
那条虚线可以通过css实现!!!