有个button 在他的单击事件里 需要处理些东西  完了需要在于它同级的另一个框架main里打开一个网页
不知道怎么弄 
<FRAMESET border=0 
frameSpacing=0 rows=106,*,100 frameBorder=NO><FRAME name=top src="Top.aspx" 
frameBorder=0 noResize scrolling=no><FRAME name=main id=main noResize
src="UnderlingMenage.aspx" frameBorder=0><FRAME name=footer 
src="footer.aspx" frameBorder=0 noResize>
</FRAMESET>现在按钮在top里  需要在main里显示网页大家说说吧

解决方案 »

  1.   

    window.parent.frames["main"].open('url')
      

  2.   

    window.parent.frames["main"].open('url')同意,另外你可以参考http://blog.csdn.net/Ghost_520/archive/2009/03/24/4020642.aspx
      

  3.   

      <input id="Button2" type="button" value="button" onclick="document.getElementById('iframe1').src = 'a.aspx';" /><br />
         <iframe id="iframe1" src="" height ="200" width="500" frameborder ="0" ></iframe>
      

  4.   


    按钮里有事件 
    刚才我通过这样已经解决了一个问题了 ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), null, "window.parent.frames[\"main\"].location='index.aspx'", true);
           return;
    现在还有一个问题是 怎么直接在事件里让最外的框架打开一个页面,如登录页面。如何解?
      

  5.   

    按钮里有事件 
    刚才我通过这样已经解决了一个问题了 ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), null, "window.parent.frames[\"main\"].location='index.aspx'", true);
           return;
    现在还有一个问题是 怎么直接在事件里让最外的框架打开一个页面,如登录页面。如何解?
      

  6.   


    受到你们的提醒我已经解决了在main里打开页面。但是怎么让最框架打开一个页面呢?