当前位置:首页 » 多媒体相关

难住了


第一页 ss.asp  
  set   datacon=server.createobject("adodb.connection")                                            
  set   rs=server.createobject("adodb.recordset")                                            
  datacon.connectiontimeout=20                                            
  datacon.open   "dsn=datasource","sa","119"                                            
  sqlquery="select   top   5   时间,   所在区,使用面积,房型,地址,房屋售价   from     [ershou]"                                            
  set   rs=datacon.execute(sqlquery)                                            
  %>                                            
              <span   style="position:   absolute;   left:   175;   top:   733">                                                
              <img   border="0"   src="bmp/4.jpg"   width="106"   height="32"></span>   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                
              <a   href="11.asp"><font   size="2"   color="#00cc33">&lt;&lt;更多的房源<span   style="position:   absolute;   left:   531;   top:   675"><img   border="0"   src="bmp/zhiye.bmp"   width="187"   height="215"></span></font></a>                                                  
              </p>                                                
          <div   align="center">                                                  
                  <table   width="51%"   border="0">                                                
                      <tr   bgcolor="#99cc99"   align="center">                                                  
                          <td   width="16%"><font   size="2">所在区</font></td>                                                
                          <td   width="20%"><font   size="2">使用面积</font></td>                                                
                          <td   width="21%"><font   size="2">房型</font></td>                                                
                          <td   width="22%"><font   size="2">地址</font></td>                                                
                          <td   width="21%"><font   size="2">房屋售价</font></td>                                                
                  </tr>                                                
                  <%                                                
  c=0                                                
  while   not   rs.eof                                                
  c=c+1                                                
  if   (c   mod   2)=1   then                                                
  %>                                                
                  <tr   bgcolor="#aaddff">                                                  
                      <%                                                
  else                                                
  %>                                                
                      <tr   bgcolor="#99cc99">                                                  
                          <%                                                
                                                 
  end   if                                                
                                                 
  %>                                                
                          <td   width="16%"><a   href=11.asp?id=   request(id)><font   size="2"><font   color="#000000"><%=rs("所在区")%></font></font></a></td>                                              
                          <td   width="20%"><a   href=11.asp?id=   request(id)<font   size="2"><font   color="#000000"><%=rs("使用面积")%></font></font></a></td>                                              
                          <td   width="21%"><a   href=11.asp?id=   request(id)<font   size="2"><font   color="#000000"><%=rs("房型")%></font></font></a></td>                                              
                          <td   width="22%"><a   href=11.asp?id=   request(id)<font   size="2"><font   color="#000000"><%=rs("地址")%></font></font></a></td>                                              
                          <td   width="21%"><a   href=11.asp?id=   request(id)<font   size="2"><font   color="#000000"><%=rs("房屋售价")%></font></font></a></td>                                              
                  </tr>                                              
                  <%                                              
  rs.movenext                                              
  wend                                              
   
                                               
  %>                    
                             
  第二页就是11.asp  
          <%                                              
  dim   b                                              
  set   datacon=server.createobject("adodb.connection")                                              
  set   rs=server.createobject("adodb.recordset")                                              
  datacon.connectiontimeout=20                                              
  datacon.open   "dsn=datasource","sa","119"        
                                 
  sqlquery="select   所在区,使用面积,房型,地址,房屋售价   from     [ershou]   where"                
             
  sqlquery=sqlquery&   "   id="&request.form("id")&""  
   
  set   rs=datacon.execute(sqlquery)    
   
  %>    
                                     
              <span   style="position:   absolute;   left:   178;   top:   565">                                                
              <img   border="0"   src="bmp/3.jpg"   width="110"   height="35"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                
              &nbsp;   <a   href="11.asp"><font   size="2"   color="#ff0000">&lt;&lt;更多的房源<span   style="position:   absolute;   left:   530;   top:   586"><img   border="0"   src="bmp/yugong.bmp"   width="188"   height="80"></span></font></a>                                                
              </p>                                              
          <div   align="center">                                                
                  <table   width="50%"   border="0">                                              
                      <tr   bgcolor="#99cc99"   align="center">                                                
                          <td   width="16%"><font   size="2">所在区</font></td>                                              
                          <td   width="20%"><font   size="2">使用面积</font></td>                                              
                          <td   width="21%"><font   size="2">房型</font></td>                                              
                          <td   width="22%"><font   size="2">地址</font></td>                                              
                          <td   width="21%"><font   size="2">房屋售价</font></td>                                              
                  </tr>                                              
   
                  <%                                              
   
  while   not   rs.eof                                              
  b=b+1                                              
  if   (b   mod   2)=1   then                                              
  %>                                              
                  <tr   bgcolor="#aaddff">                                                
                      <%                                              
  else                                              
  %>                                              
                      <tr   bgcolor="#99cc99">                                                
                          <%                                              
                                               
  end   if                                              
                                               
  %>                                              
                          <td   width="16%"><font   size="2"><font   color="#000000"><%=rs("所在区")%></font></font></a></td>                                            
                          <td   width="20%"><font   size="2"><font   color="#000000"><%=rs("使用面积")%></font></font></a></td>                                            
                          <td   width="21%"><font   size="2"><font   color="#000000"><%=rs("房型")%></font></font></a></td>                                            
                          <td   width="22%"><font   size="2"><font   color="#000000"><%=rs("地址")%></font></font></a></td>                                            
                          <td   width="21%"><font   size="2"><font   color="#000000"><%=rs("房屋售价")%></font></font></a></td>                                            
                  </tr>                                            
                  <%                                            
  rs.movenext                                            
  wend                                            
                                             
  %>                                            
              </table>                                            
  单击所在地区 使用面积 地址均查不到东西地址栏显示  
  http://sun/iissamples/11.asp?id=%20request(id)  
  怎么办呀  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 

.

推荐阅读

  • 北京长话将优惠三个月 比打IP电话还便宜 [详细内容]
  • 网通猛攻长话业务 紧开发ADSL与数据通信 [详细内容]
  • 绚烂如花 爱华AZ-ES256新鲜日志 [详细内容]
  • 长话市场竞争加剧 AT&T为什么反而提价? [详细内容]
  • 2.5G时代联通对决移动 CDMA 1X单骑救主? [详细内容]
  • 2003娱乐圈班主任日志:这些明星真折腾 [详细内容]
  • 手把手教您wap网上javaQQ-安装篇 [详细内容]
  • 网友回答:

    讨论区

    Login