关闭当前窗口
1 /// <summary>
2 /// 关闭当前窗口
3 /// </summary>
4 public static void CloseWindow()
5 {
6 #region
7 string js = @"<Script language='JavaScript'>
8 parent.opener=null;window.close();
9 </Script>";
10 HttpContext.Current.Response.Write(js);
11 HttpContext.Current.Response.End();
12 #endregion
13 }