62,254
社区成员
发帖
与我相关
我的任务
分享
function OpenEditWin(strID)
{
var url;
url = "DocumentAdd.aspx?Doc_ID=" +strID+"&action=update";
window.showModalDialog(url,window,'dialogwidth:800px;dialogheight=300px;status=no;help=no;resizable=no;scroll=no;center=yes;location=no');
}
if (result > 0)
{
string url = GetUrl();
Response.Write("<script language=javascript>alert('修改成功!');window.dialogArguments.location.assign('" + url + "');</script>");
Response.Write("<script>window.close();</script>");
Response.Write("<script> window.dialogArguments.location.reload();</script>");
Response.End();
}
<script language='javascript'>
function OpenChild()
{
window.open('Child.aspx','anyname','width=530,height=310,status=no,toolbar=no, menubar=no,location=no');
}
</script>
<body>
<form id="form1" runat="server">
<div>
<input id="Button1" type="button" value="OpenChild" onclick="OpenChild()" />
</div>
</form>
</body>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Close" OnClick="Button1_Click" />
</div>
</form>
</body>
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("<script language='javascript'>window.opener.location.href='father.aspx';window.close();</script>");
}