当前位置: 代码迷 >> ASP.NET >> asp.net 刷新页面有关问题
  详细解决方案

asp.net 刷新页面有关问题

热度:4929   发布时间:2013-02-25 00:00:00.0
asp.net 刷新页面问题

  是这样,从   A.aspx   ,   a001.aspx   ,……

假如从   A.aspx   中点了一个连接到   B.aspx   中,这中间有地址参数

如   B.aspx?id=001&url=a.aspx

    B.aspx   处理完成之后怎样返回到     A.aspx   并且使       A.aspx   刷下一下呢?

  从地址参数中获取然后   在   Response.Redirect()   这样是不能刷新的

请问如果解决呢?



------解决方案--------------------------------------------------------
window.opener.location.reload();
------解决方案--------------------------------------------------------
从地址参数中获取然后 在 Response.Redirect() 这样是不能刷新的
==============================================================
客户端的行为是IE控制的,比如刷新
------解决方案--------------------------------------------------------
Response.Write( " <script> window.opener.location.replace(opener.location); </script> ");
------解决方案--------------------------------------------------------
Response.Write( " <script> window.opener.location.herf=window.opener.location.herf </script> ");
------解决方案--------------------------------------------------------

wusongwtl(700cc)
window.opener.location.reload();

支持这个方法
------解决方案--------------------------------------------------------
B.aspx页面写一个js脚本 在b.aspx页面 unload时候触发这个时间
刷新打开它的父窗口
window.opener.location.reload;
------解决方案--------------------------------------------------------
Page.RegesitStartScripBlock( " <script> window.opener.location.herf=window.opener.location.herf </script> ");
------解决方案--------------------------------------------------------
都解决了,怎不结贴?
  相关解决方案