按钮中用 
window.showModalDialog(Url,'tempdialog','dialogWidth:500px;dialogHeight:220px;status:no;scroll:no;'); 打开的窗体中 有个返回按钮 作用是关闭打开的子窗体~UnitManage.aspx 按钮的OnClientClick="Javascript:window.top.opener = null; window.close(); "几个页面中正常关闭 唯独在这个还有gridView的页面中弹出的子窗体 点击按钮后 重新以url的方式打开了字窗体什么原因呢?

解决方案 »

  1.   

    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <iframe name="CommonFrm" frameborder="0" style="width: 1024px; height: 768px; " id="CommonFrm"
            src='<asp:Literal ID="SubFrmSrc" runat="server"></asp:Literal>'></iframe>
    </asp:Content>恰套了一个iframe  通过传值 SubFrmSrc.Text进行跳转  就可以正常关闭 也找找原因中 找到分享~先结帖子~
      

  2.   

    可是这个 SubFrmSrc我怎么在CS代码找不这个对象,没有办法对SubFrmSrc这个的Text属性赋值,不知道为何?
      

  3.   

     <base target="_self"/> 在head中加入这一一句话即可