下面的页面写javascript刷新上面

解决方案 »

  1.   

    新增完了以后让上面的frame的页面重新load一遍。
    dd.window.location.reload();dd是frame的名字.
      

  2.   

    你可以把这个页面重新加载一次啊
    reload()
      

  3.   

    比如上面的frame的id是 fm1 下面的是fm2可以这样写parent.document.frames["fm1"].document.location.reload()you may write in cs file
      

  4.   

    Response.Write("<script>parent.frrighttop2.location.href='righttop2.aspx';</script>")
      

  5.   

    Add it behind the code in "OK" button_click.
      

  6.   

    我是这样写的:
    private void Button1_Click(object sender, System.EventArgs e)
    {Response.Write("<script>parent.parent.frames[1].location.href='newuser.aspx';</script>");
    }
    可是系统老是报出如下错误:
    parent.frames.1.loaction为空或不是对象
      

  7.   

    改为<script>parent.dd.location.href='newuser.aspx';</script>试试,dd是你要刷新的frame的名字。
      

  8.   

    哈哈,原来在c#中需要这样写啊:
    Response.Write("<script>parent.frames(1).location.href='newuser.aspx';</script>");
    谢谢各位的帮忙!!!