你要把空间放到iframe的子窗体中,用框架也可以向你说的那样及时刷新吧,比如你在源页面里<head>标记中加上<target base='目标页面.aspx'>(记不太清,89不离10,因为这里没条件调试了,所以还要你自己是一下,抱歉,希望有所帮助)

解决方案 »

  1.   

    可以传递参数
    window.parent.frame[2]
      

  2.   

    window.parent.frame[2].location.reload();
      

  3.   

    我的例子跟你的差不多
    <table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td id="left_Panel" vAlign="top" width="13%">
    <!-- Left Panel -->
    <table cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0">
    <tr>
    <td style="WIDTH: 100%;HEIGHT: 100%" vAlign="top">
    <iframe name="frameleft" id="iframeleft" src="left.aspx" frameborder="0" width="100%" height="100%"
    style="WIDTH: 100%; HEIGHT: 100%"></iframe>
    </td>
    </tr>
    </table>
    </td>
    <td style="WIDTH: 2px" onclick="fn_show_left();" width="6" background="images/sapcer.gif"
    height="100%"><IMG id="imgbar1" height="11" src="images/a1.gif" width="11"></td>
    <td style="bgcolor: #f6f6f6" vAlign="top" width="100%" height="100%">
    <!-- Right Panel -->
    <table class="tan-border" cellSpacing="0" cellPadding="0" border="0" style="WIDTH: 100%; HEIGHT: 100%">
    <tr>
    <td vAlign="top"><iframe id="iframe100" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; VISIBILITY: visible; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 100%; BORDER-TOP-STYLE: none; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"
    name="frmright" align="top" marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto" height="100%">
    </iframe>
    </td>
    </tr>
    </table>
    <!-- End Right Panel --></td>
    </tr>
    </table>你按左边菜单可以直接刷新右边的页面:
    window.parent.frameright.location='...'
      

  4.   

    我想把window.parent.frame[2].location.reload()写在服务器端,就是写在一个按钮的onclick事件中,应该怎么写呢?
      

  5.   

    干嘛弄的那么麻烦哦,就在你按钮的click里面加一个target="....aspx"就行了吧我以前这样写过的。应该可以的。