我写了个页面,主页面是显示帖子内容,在内容下方有一个框架里面是回复帖子的页面,在回复帖子后我想同时刷新帖子内容,但如果刷新整页的话,框架里的页面会弹出“重发”按扭,请问该怎么解决这个功能?我是想把这个页面做成类似CSDN的帖子页,请大家指点

解决方案 »

  1.   

    parent.document.location.reload();
    在.aspx页面加上上面那句话
      

  2.   

    我是提交回复后 就转到当前页面 load时候读出数据库中的内容绑定。没有出现楼主的问题 
    绑顶
      

  3.   

    回复帖子后:
    Response.Redirect(Request.RawUrl);
      

  4.   

    提交后:
    Response.Write("<script>top.location=top.location.href;</script>");
    or
    Response.Write("<script>parent.location=parent.location.href;</script>");
    or
    Response.Write("<script>parent.框架名.location='xxx.aspx';</script>");
      

  5.   

    Response.Write("<script>parent.框架名.location='xxx.aspx';</script>");如果是最外面的一页,框架名是什么?
      

  6.   

    这样试试
    Response.Write("<script>top.location='xxx.aspx';</script>");
      

  7.   

    我用
    Response.Write("<script>parent.location=parent.location.href;</script>");
    可以刷新父页
      

  8.   

    只需在本页的前台
    <head>
    <meta base=_self>
    </head>
      

  9.   

    设同一命名空间,在类中指定page参数,事件进行提交postback
      

  10.   

    不出现 重发 
    重新定向一下就可以了类似
    http://huobazi.cnblogs.com/archive/2004/04/06/RefreshOrReloadParentWindowWithoutConfirm.html
      

  11.   

    还是不行
    这个页面是:http://www.52cwbb.com/include/userSuggest.xml ;麻烦大家帮忙看看
      

  12.   

    Response.Redirect("userSuggest.xml");
    哎,这个只是框架里面的页面重定向的
      

  13.   

    答应:Response.Write("<script>top.location=top.location.href;top.location.reload();</script>");