找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 99|回复: 5

框架参数传递问题

[复制链接]
发表于 2009-9-14 23:57:49 | 显示全部楼层 |阅读模式 IP:江苏扬州
代码如下

<%
dim n
n=request("t")
if n="" then
n="锭子系列"
end if
%>
<head>

<!--#include file="head.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="inc/css.css" type="text/css">
<style type="text/css">
<!--
body {
    background-image: url(image/a_bg0001.gif);
    background-repeat: repeat;
    }
-->
</style>

<title>产品</title>

</head>

<body >
<table width="782" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td valign="top" width="170" height="39"><img src="image/cp00.gif" width="170" height="39" /></td>
    <td width="612" rowspan="8" valign="bottom" background="image/xfz3.gif"><p align="center">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="570" height="170">
        <param name="movie" value="332.swf" />
        <param name="quality" value="high" />
        <embed src="332.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="170"></embed>
      </object>
    </p>      </td>
  </tr>
  <tr>
    <td valign="top" height="22"><img src="image/cp000.gif" width="170" height="22" /></td>
  </tr>
  <tr>
    <td valign="top" height="22"><a target="cp" href="cpfl.asp?name=加捻器轴承系列"><img src="image/cp001.gif" width="170" height="22" border="0" /></a></td>
  </tr>

  <tr>
    <td valign="top" height="22"><a target="cp" href="cpfl.asp?name=纺锭轴承系列"><img src="image/cp003.gif" width="170" height="22" /></a></td>
  </tr>
  <tr>
    <td valign="top" height="22"><a target="cp" href="cpfl.asp?name=锭带张力盘系列"><img src="image/cp004.gif" width="170" height="22" /></a></td>
  </tr>

   
  <tr>
    <td valign="top" height="22"><a target="cp" href="cpfl.asp?name=花式捻线锭子系列"><img src="image/cp007.gif" width="170" height="22" /></a></td>
    <td width="612" rowspan="3" valign="top" background="image/xfz3.gif"><div align="left">    <img src="images/cp0.gif" width="483" height="34" /><% =n %><br />
      <br />
    </div></td>
  </tr>
  <tr>
    <td valign="top" height="22"><a target="cp" href="cpfl.asp?name=特殊纺织轴承系列"><img src="image/cp008.gif" width="170" height="22" /></a></td>
  </tr>
  <tr>
    <td valign="top" height="37"><img src="image/cp111.gif" width="170" height="37" /></td>
  </tr>
  <tr>
    <td valign="top" background="image/leftmenu-bg.gif"><p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p></td>
    <td width="570" height="610" valign="top" background="image/000.jpg">
<iframe name="cp" height="900" width="600" src="cpfl.asp?name= "&n&"" border="0" frameborder="0">浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
  </tr>
</table>
</body>
<!--#include file="bottom.asp"-->
</html>



1.首先我能确保得到变量n的 值
2.<iframe name="cp" height="900" width="600" src="cpfl.asp?name= &n&”  border="0" frameborder="0">浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
中换成
<iframe name="cp" height="900" width="600" src="cpfl.asp?name=XXXXX “ border="0" frameborder="0">浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>

其中XXX为数据库中字段名
则框架能显示到自己想要的结果

3.问题
如何用变量n来代替这个常量XXX???

我试过&n&    ' "&n&" ’    n    ”n“  <% =n %> 都得不到我要的结果


求版主指教
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 01:44 , Processed in 0.165262 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表