您的位置:首页 > 其它

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

2010-12-22 22:33 666 查看
圖片:

showModalDialog1.jpg、showModalDialog2.jpg





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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐