在我的项目中,主界面由三个框架设计,顶部,左边,右边,
在我左边框架中,有一个treeview控件,我怎么做到单击该
控件的一个结点,将值提交到顶部和右边的框架中呀???
请教各位大虾!!!!!!!!!

解决方案 »

  1.   

    用javascript吧, 假设三个帧分别是 TopFrame, LeftFrame, RightFrame 
    parent.TopFrame.location.href = xxxx;
    parent.RightFrame.location.href = xxxx;
      

  2.   

    多来几个window.open()就行了,或者用楼上的方法也挺好的。
      

  3.   

    同意FJGoodGood,
    可以在Node.Text里写:
    Node.Text = "<span onclick=javascript:parent.TopFrame.location.href = xxxx;parent.RightFrame.location.href = xxxx;>" + NodeName+ "</span>"
    面不要在Node.NavigateUrl里写.
      

  4.   

    用request.querstring
    看行不?
      

  5.   

    算了,具体点:// index.htm
    <frameset rows="120,*">
    <frame src=top.htm name=TopFrame>
    <frameset cols="160,*">
    <frame src=left.htm name=LeftFrame>
    <frame src=right.htm name=RightFrame>
    </frameset>
    </frameset>// left.htm
    <script>
    function go()
    {
        parent.TopFrame.location.href = 'http://www.sina.com.cn';
        parent.RightFrame.location.href = 'http://www.sohu.com';
    }
    </script>
    <form>
    <input type=button value="click" onclick="go()">
    </form>
      

  6.   

    也可以
    中间的主页面aspx,两边的用户控件ascx,
    只用一个主页面的url带上所有的参数
      

  7.   

    用session、cookie 或者 javascript
    1.
    session["keyname"]=赋值
    在别的页面取值
    if(session["keyname"]!=null)
    ...=session["keyname"].tostring();2.cookie类似3.Response.write("<script>window.parent.document.all.控件ID.value='值';</script>")