解決用showModalDialog弹出页面后,form表单提交再次弹出一个新窗口問題

圖片:

showModalDialog1.jpg、showModalDialog2.jpg

解決用showModalDialog弹出页面后,form表单提交再次弹出一个新窗口問題_第1张图片

解決用showModalDialog弹出页面后,form表单提交再次弹出一个新窗口問題_第2张图片

default.aspx

<head >
    <title>default.aspx</title>
    <link href="StyleSheet.css"  type="text/css" rel="stylesheet"/>
     <script type="text/javascript" language="javascript">
         function showIssue() {
             window.showModalDialog("GoodsMange/Issue.aspx", "", "dialogWidth:800px;dialogHeight:800px;scroll:no;status:no;center:yes");
             return false;
         }
     </script>
</head>

<body>

  <asp:ImageButton ID="imgbtnOutManage" runat="server"      ImageUrl="~/image/IssueItem.gif"                                                      OnClientClick="showIssue();"   />

</body>

 

Issue.aspx

<head runat="server">
    <title>Issue.aspx</title>
    <base target="_self" />
</head>

<body>

 <asp:Button ID="btnAdd" runat="server" Text="出 庫"  OnClick="btnAdd_Click" PostBackUrl="#" />

<asp:ImageButton ID="linkFirstPage" runat="server" ImageUrl="~/image/pg-first.gif"    PostBackUrl="#"  onclick="linkFirstPage_Click" />

</body>

 

 

你可能感兴趣的:(showModalDialog)