主页面分成三部分,TopFrame,LeftFrame,RightFrame,我想在RightFrame里的页面单击一个按钮刷新LeftFrame里的页面,代码如下: Response.Write("<script language=javascript>window.parent.LeftFrame.location.href='Left.aspx'</script>"); 可是单击按钮没有反应,而且,用showModalDialog无法弹出新窗口,是不是我的ASP。net什么设置禁用了Javascript啊?帮帮忙啊,这个问题困扰我好几天了,刚刚学习就遇到困难了啊!

解决方案 »

  1.   

    用链接就可以了
    比如
    <a href="MessageManage.aspx" target="left">滚动消息管理</a>
      

  2.   

    试试Response.Write("<script language=javascript>window.parent.LeftFrame.href.reload='Left.aspx'</script>
      

  3.   

    showModalDialog无法弹出新窗口是不是IE设置了弹出窗口
      

  4.   

    你是用帧还是用showModalDialog?
      

  5.   

    框架页面刷新还是不行,我试了很多方法。
    <script type="text/javascript" language="javascript">
        function showModel()
        {
           window.showModalDialog("http://localhost:2497/Begin0810/OrgInfo.aspx",window,"dialogWidth=500px;dialogHeight=300px;center=yes;status=no");
           
        }
        </script>
    这段代码在FrontPage和单纯的Html里都能用,在ASp。net2.0里就是无法弹出窗口,郁闷啊
      

  6.   

    可以改成如下试试:
    Response.Write("<script language=javascript>top.LeftFrame.location.href=top.LeftFrame.location.href</script>");
      

  7.   

    还是不行啊,我觉得是不是ASP。Net的某个方面的设置问题,禁用了JavaScript?