如何让一个弹出页面引起其父页面的刷新?
2006-12-26 10:44
381 查看
/// <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的时候就会调用这段脚本!!!
/// 关闭当前窗口并刷新父窗口
/// </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的时候就会调用这段脚本!!!
相关文章推荐
- 如何让一个弹出页面引起其父页面的刷新?
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?
- 如何关闭弹出页时,使原页面自动刷新
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?(转自孟子E章)
- ASP.NET MVC中如何在当前页面上弹出另外一个页面
- Androidr如何实现后退一个页面并刷新这个页面的数据
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?
- [ASP.NET]如何点击按钮弹出新窗口,输入数据后返回并刷新页面?(C#代码)
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?
- 如何在页面每次刷新的时候可以调用一个javascript写的函数
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?(C#代码)
- js弹出框点击确认和取消时跳到其他页面且和父页面在同一个Iframe中如何实现?
- 弹出一个新页面,且旧页面不刷新
- 页面table的每行都有一个<input type='button' />,如何实现点击按钮在按钮下方弹出一个div,点击空白消失
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面
- 用js如何在后台弹出一个新的页面 IE和FF都支持的写法……
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?(老孟)
- .NET中用弹出窗口添加或修改一个页面,当添加或修改相关内容后按下提交按钮自动刷新页面的JS代码
- 现在我在a页面 windows.open 一个b页面,当b页面关闭时如何让a页面刷新
- 如何点击按钮弹出新窗口,输入数据后返回并刷新页面?