单击treeview节点刷新iframe问题
treeview是动态生成的。iframe的src= "a.aspx "。
要实现:
当单击treeview某一节点,获取该节点的值传给a.aspx,它将对其进行处理。这时需要a.aspx重新生成,(只要a.aspx刷新,不要父页面刷新)。这里该怎么实现?
[解决办法]
如下:
<td vAlign= "top " width= "200 " bgColor= "white " height= "663 ">
<div style= "BORDER-RIGHT: #cecece 1px solid; BORDER-TOP: #cecece 1px solid; BORDER-LEFT: #cecece 1px solid; WIDTH: 200px; BORDER-BOTTOM: #cecece 1px solid; HEIGHT: 100% "> <iewc:treeview id= "TreeView1 " runat= "server " BackColor= "White ">
<iewc:TreeNode Text= "广告发布系统 ">
<iewc:TreeNode NavigateUrl= "../PublishAd/AddAd.aspx " Target= "iframe1 " Text= "添加广告 "> </iewc:TreeNode>
<iewc:TreeNode NavigateUrl= "../PublishAd/AdList.aspx " Target= "iframe1 " Text= "未发布的广告 "> </iewc:TreeNode>
<iewc:TreeNode NavigateUrl= "../PublishAd/PublishAdList.aspx " Target= "iframe1 " Text= "已发布的广告 "> </iewc:TreeNode>
</iewc:TreeNode>
</iewc:treeview> </div>
</td>
<td vAlign= "top ">
<iframe name=iframe1 frameborder=0 width=800 height=663> </iframe>
[解决办法]
将节点的Target属性设为iframe的name属性
[解决办法]
iframe必须有个name做标识