就是frameset框架分了3个页面呀
框架的name属性分别是top,left,right呀
我想通过在left框架中的页面里面的一个按钮来控制,right框架页面里的内容,也就是SRC
如何写?

解决方案 »

  1.   

    比如你的right框架的名字是myright
    那么在left的按钮脚本执行
    window.myright.location.href='xxx.aspx';
      

  2.   

    对不起,是
    window.parent.myright.location.href='xxx.aspx';
      

  3.   

    private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
    {
    window.myright.location.href='xxx.aspx'; }
    是不是这样?
      

  4.   

    c:\inetpub\wwwroot\wygl\left.aspx.cs(60,40): error CS1012: 字符文本中字符太多
      

  5.   

    如果就静态的
    这个就行了:<a href="xxx.aspx" target="myright"><input type="button" value="test"></a>