/// <summary>
/// 关闭当前窗口并刷新父窗口
/// </summary>
public static void CloseWindow()
{
string js=@"<Script language='JavaScript'>
window.close();
window.opener.location.href="http://www.blog.com.cn/window.opener.location.href"; _fcksavedurl=""http://www.blog.com.cn/window.opener.location.href"; "
</Script>";
HttpContext.Current.Response.Write(js);
HttpContext.Current.Response.End();
}
把以上函数在你的Button事件里调用就可以啦
当单击Button的时候就会调用这段脚本!!!