如果你在隐藏panel时是回到服务器处理的,就是了,你应该在隐藏panel时,保留下iframe中的页面,返回是要重新设一下iframe

解决方案 »

  1.   

    顶!
    另觉得这样有问题,如果我在点按键前,在iframe页面中已经有所操作的话,这种先保留再重设的方法应该会冲掉已有的操作,最好有一种方法能够设置iframe不被刷新
      

  2.   

    你的应用是不是想点按钮可以隐藏TreeView菜单,而Iframe不刷新,如是的话,可仅用客户端的javascript实现TreeView的隐藏即可。给个例子:
    三列的表格,左:TreeView  中:相当于你要的按钮  右:Iframe<script language=javascript>
    <!--
    function ShowHideMenu()
    {
    if(MenuFlag.innerText=="show")
    {
    MenuFlag.innerText="hidden";
    menu.style.display="none";
    }
    else
    {
    MenuFlag.innerText="show";
    menu.style.display="block";
    }
    }
    -->
    </script>
    <table cellSpacing="0" cellPadding="0" width="775" align="center" bgColor="#ffffff" border="0"> <!--DWLayoutTable-->
    <tr>
    <TD width="100%">
    <table cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff" border="0"> <!--DWLayoutTable-->
    <tr>
    <td id="menu">
    <iewc:treeview id="tvRoleUserManage" .......

    <span style="DISPLAY: none" id="MenuFlag">show</span>
    </td>
    <td onclick="ShowHideMenu();" style="VISIBILITY: visible"><IMG src="hidemenu.gif"></td>
    <td  width="100%">
    <IFRAME id="frameDetail"  src="main.htm"></IFRAME>
    </td>
    </tr>
    </table>
      

  3.   

    首先保证装好你的组件,这个包安装非常方便,只要运行一下即可在VS.NET中使用了:
    http://218.56.11.178:8018/FileDown.aspx?FID=4看看这个例子,对你一定有启发:
    http://218.56.11.178:8018/FileDown.aspx?FID=246这个论坛也使用了树:
    http://218.56.11.178:8018/FileDown.aspx?FID=212论坛的使用演示地址,在这里:
    http://expert.kaer.cn/提供站点:http://soft.kaer.cn       希望大家多支持!
    ftp://soft.kaer.cn   可以直接用IE匿名访问,目前速度没限制。