.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//執行一些工作的程式碼
Response.Write("<script language='javascript'>");
Response.Write("window.opener=null;");
Response.Write("window.open('','_self');");
Response.Write("window.close();");
Response.Write("</script>");
}
}