<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script language="JavaScript">
function shutwin(){
window.parent.close();
return;
}
</script>
<BODY>
<input type=button onclick="shutwin()">
</BODY>
</HTML>

解决方案 »

  1.   

    this.ClientScript.RegisterStartupScript(this.GetType(), "msgbox", "if(confirm('" + msg + "?')){window.location='确定后的界面';window.location.href=window.location.href; }else{window.open('取消后的界面');window.parent.parent.close();}", true);
      

  2.   

    this.ClientScript.RegisterStartupScript(this.GetType(), "msgbox", "if(confirm('" + msg + "?')){window.location='确定后的界面';window.location.href=window.location.href; }else{window.open('取消后的界面');window.parent.parent.close();}", true);
      

  3.   

    this.ClientScript.RegisterStartupScript(this.GetType(), "msgbox", "if(confirm('" + msg + "?')){window.location='确定后的界面';window.location.href=window.location.href; }else{window.open('取消后的界面');window.parent.parent.close();}", true);