您的位置:首页 > 其它

如何让一个弹出页面引起其父页面的刷新?

2006-12-26 10:44 399 查看
/// <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的时候就会调用这段脚本!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐