刷新父窗口

View Code
 1 /// <summary>
2 /// 刷新父窗口
3 /// </summary>
4 public static void RefreshParent(string url)
5 {
6 #region
7 string js = @"<Script language='JavaScript'>
8 window.opener.location.href='" + url + "';window.close();</Script>";
9 HttpContext.Current.Response.Write(js);
10 #endregion
11 }

 

posted @ 2012-01-29 10:09  名字随意  阅读(98)  评论(0编辑  收藏  举报