重开贴 关闭当前页面问题 谢谢大家
用户点击修改 弹出一个页面
事件代码
protected void LinkButton1_Click(object sender, EventArgs e) { Page.ClientScript.RegisterStartupScript(this.GetType(), "showwindow", "assing(" + CompanyDetailsID + ")", true); }
function assing(CompanyDetailsID) { //alert(id); var str=window.showModalDialog("http://localhost:2773/321net/Update_Companyneirong.aspx?CompanyDetailsID=" + CompanyDetailsID,"",'resizable:no;scroll:no;edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;dialogHeight:500px;dialogWidth:650px'); } </script>
Response.Write(" <script language='javascript'>window.opener=null;window.close(); </script>");
<head> <base target="_self" /> <meta http-equiv="expires" content="0" /></head>
[解决办法]
帮你顶!!!
接分!!!