ASP.NET 當前介面彈出另一個介面後,點擊彈出介面的按鈕又重建一個彈出介面的解決辦法。。

來源:互聯網
上載者:User

模態視窗彈出介面:

 var f_url = "SCYY.aspx";                window.showModalDialog(f_url, window, 'dialogwidth:450px;dialogheight=210px;toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no,titlebar=no,directories=no');

彈出介面的HTML:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SCYY.aspx.cs" Inherits="AnyOffice.general.FW_ZCGL.SCYY" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <base target="_self"></base>    <title>刪除原因</title>    <script language="javascript" type="text/javascript">        function callParent() {            //window.opener.toUpdate_nr();            window.close();        }     </script></head><body class="bodycolor"  >    <form id="form1" runat="server">    <div>        <table width="100%" class="small" cellspacing="1" cellpadding="3" align="center"            border="0">            <tr>                <td class="TableHeader" width="100%">                <img src="/images/green_arrow.gif" align="absMiddle">                請填寫刪除原因:                </td>            </tr>            <tr>                <td width="100%">                    <asp:TextBox runat="server" CssClass="BigInput" ID="tbyy" Width="100%" Height="140px" TextMode="MultiLine"></asp:TextBox>                </td>            </tr>            <tr>                <td colspan="2" align="center">                    <asp:Button ID="btn_sbmit" runat="server" Text="提交" OnClick="btn_sbmit_Click" class="SmallButton" />                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                    <asp:Button ID="btn_clear" runat="server" Text="清除" OnClick="btn_clear_Click" class="SmallButton" />                </td>                <td>                </td>            </tr>        </table>    </div>    </form></body></html>

解決的辦法是 加上 這句話:<base target="_self"></base>

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.