iframe如何打开另外一个网页

有一个treeview每个node的id是a,b,c,旁边是个iframe。
1--2 iframe
--3
我想点node的时候就往对应的id和value传到iframe里显示,该怎么做呢?

首先建立1、2、3三个页面,再创建一个站点地图文件,或直接在TreeView控件里面使用NavigateUrl属性分别连接这三个页面,同时设置Target属性为iframe的名称。
在iframe中设置TagName属性和TreeView中设置的Target属性相同(即都为iframe的名字)即可实现上述效果。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-02-21
估计你的意思再Iframe中打开一个网页,在主页上打开。window.parent.location.href=""=就可以啊。
顺便给你扩展这方面的知识:
window.location.href,parent.location.href,top.location.href
"window.location.href"、"location.href"是本页面跳转
"parent.location.href"是上一层页面跳转
"top.location.href"是最外层的页面跳转
第2个回答  2010-02-21
用js动态更改iframe的地址,在地址后缀上加上你的参数,然后刷新iframe,在iframe中得到参数
第3个回答  2010-02-21
设置每个连接 的target = 你的frame的name
第4个回答  2010-02-21
<a href="a.aspx?id=1" target="frm1">1--2</a>

<iframe name="frm1"></iframe>
相似回答