我们如何在ASP.net中刷新父窗口 [英] How we can refresh Parent Window in ASP.net

查看:116
本文介绍了我们如何在ASP.net中刷新父窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody,

我想在ASP.net关闭子页面时刷新父页面(vb.net,c#)。



谢谢

Hello Everybody,
I want to refresh parent page when I close child page in ASP.net (vb.net, c#).

Thanks

推荐答案

你试试这个代码



You try this code

Response.AddHeader("Refresh","10:url=Test.aspx");


在子窗口文档的正文标记中,放置以下内容



In body tag of the document of child window, place the following

onunload="window.opener.location.reload();"


Page.Response.Redirect(Page.Request.Url.ToString(),true);
Page.Response.Redirect(Page.Request.Url.ToString(), true);


这篇关于我们如何在ASP.net中刷新父窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆