62,046
社区成员
发帖
与我相关
我的任务
分享
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('保存成功!');", true);
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "refresh", "window.opener.location=window.opener.location;", true);
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "close", "window.close();", true);
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('提交成功!');", true);
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "refresh", "window.opener.location.reload();", true);// 刷新父窗口。
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "close", "window.close();", true);
<li><a href="#" onclick="javascript:window.open('PTAdd.aspx','','height=300, width=900,left='+(screen.availWidth-600)/2+',top='+(screen.availHeight-300)/2+',status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes')" ><div class="addinfo"></div><span style=" height:18px" onmouseover="mover(this)" onmouseout="mout(this)">新建</span></a></li>
[/quote]
我有点儿不明白你描述的东西
你可以把这个抛开,尝试用另一种方式再试试先<li><a href="#" onclick="javascript:window.open('PTAdd.aspx','','height=300, width=900,left='+(screen.availWidth-600)/2+',top='+(screen.availHeight-300)/2+',status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes')" ><div class="addinfo"></div><span style=" height:18px" onmouseover="mover(this)" onmouseout="mout(this)">新建</span></a></li>