解決用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>
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>
相关文章推荐
- 【转载】解決用showModalDialog弹出页面后,form表单提交再次弹出一个新窗口問題
- 用showModalDialog弹出页面后,提交表单总是弹出一个新窗口
- 用showModalDialog弹出页面后,提交表单总是弹出一个新窗口
- 用showModalDialog弹出页面后,提交表单总是弹出一个新窗口
- 关于showmodaldialog 打开新窗口后提交表单操作时,避免弹出新窗口和避免从后台获取“新数据”后不能刷新当前模态页面的解决方案
- 解决以showModalDialog打开的页面在提交表单时弹出新窗口的问题
- 解决以showModalDialog打开的页面在提交表单时弹出新窗口的问题
- 如何用JQuery弹出小窗口(是注册页面)提交表单form
- 在一个form用一个SUBMIT(或button)分别提交到两个处理表单页面的代码
- 页面中弹出模态窗口,提交表单后关闭窗口并刷新父页面解决方法
- 关于form表单提交,如何跳转到一个带参数的页面
- jquery的layer弹出层框架,如果设置 iframe弹出一个页面里是表单提交,提交完怎么关闭弹出层
- 关于showModalDialog()弹出窗口.更改了页面的数据,再次点击页面却没有刷新
- jquery的layer弹出层框架,如果设置 iframe弹出一个页面里是表单提交,提交完怎么关闭弹出层
- 弹出showModalDialog窗口提交表单并关闭窗口的问题 (关闭又弹出新窗口问题)
- HTML 之 Web页面表单form中只有一个input的text元素,按回车默认提交
- 用window.showModalDialog()打开一个新窗口,但是提交的时候会打开一个新页面解决办法
- web开发之制作页面弹出窗口(form提交弹出式)
- 模态对话框问题:父窗口打开一个模态子窗口后,子窗口的form提交给自己,弹出新窗口
- 在一个form用一个SUBMIT(或button)分别提交到两个处理表单页面的代码