各位高手:我的C#后台是使用Dreamweaver中的框架,想信使用过的都会遇到在框架中链接本身框架页面时,会重新加载,left,top,base,right。请问怎样解决。还有就是,我的top页面有个退出,怎样在点击后关闭整个框架页面,打开一个新页面了???

解决方案 »

  1.   

    Response.Write ("<script>top.location.href='login.aspx';</script>");
    Response.Write("<script language='javascript' defer>top.leftFrame.location.href='../menu.aspx'</script>");
      

  2.   

    parent.document.getElementById('content').src="";
    parent.location.href="";
    document.frames["content"].location.href = ""; 
      

  3.   

    Response.Write (" <script>window.open("XX.aspx","_self"); </script>"); 
    上面的回答也比较好,我一般用这个
      

  4.   

    我的Top页面有有一个预览,需要打开一个新窗口,    //建材网首页预览
        protected void LinkButton2_Click(object sender, EventArgs e)
        {
            Response.Write ("<script>window.open('../comfirmMsg.aspx','_self');</script>");
        }这样不能打开一个新窗口,请指点
      

  5.   

    window.open很容易被当成广告拦截了
    我就想不明白楼主为什么要关闭当前的页面 在打开新页面?
    直接在当前的页面打开新页面不就行了吗?
    <a href="http://www.baidu.com" target="_top">打开百度</a>
      

  6.   

    我的需求是top页面有一个LinkButton,用于预览页面,像51那样,
    现在就是要点这个按纽传一个id值,打开一张新页面,原页面不关闭,
    我使用的是框架,不知怎样实现???????
      

  7.   

    另外还想向大家请教下:Repeater怎样实现光棒效果,谢谢,我会加分的
      

  8.   

    在Repeater实现光棒效果如
    <table>
    <asp:Repeater ID="RP1" runat="server">
    <tr onmouseover="this.style.backgroundColor='#c4d8ed';" onmouseout="this.style.backgroundColor='#fefeff';">
    <td>dd</td>
    </tr>
    </asp:Repeater>
    </table>
      

  9.   

    想要跳转页面 不关闭原页面<input id="Button1" type="button" value="审核原因"  onclick="javascript:window.showModalDialog('AuditingManage/QueryAuditingError.aspx?measurename=<%# Eval("measurename")%>',window,'status:yes;Maximize=yes;resizable:yes;dialogHeight:310px;dialogWidth:500px;unadorne:yes');" class="button"/>关闭窗口  Response.Write("<script>parent.location.href='../login.aspx'</script>");