
html 引用asp变量
<%id=request("id")sql="select*frombd_productwherecid="&idsetrs=server.createobject("a...
<%
id=request("id")
sql="select * from bd_product where cid="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if not rs.eof then
cp_name=rs("cp_name")
end if
rs.close
set rs=nothing
%>
<iframe src="../accem/template/'+ &id + '.html" width="100%" height="580" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>
请问这个id的变量,怎么引入到下面的iframe中? 展开
id=request("id")
sql="select * from bd_product where cid="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if not rs.eof then
cp_name=rs("cp_name")
end if
rs.close
set rs=nothing
%>
<iframe src="../accem/template/'+ &id + '.html" width="100%" height="580" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>
请问这个id的变量,怎么引入到下面的iframe中? 展开
1个回答
展开全部
<iframe src="../accem/template/<%=request.QueryString("id")%>.html" width="100%" height="580" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询