在chrome中刷新父页面时出现问题 [英] Issue in refreshing parent page in chrome

查看:232
本文介绍了在chrome中刷新父页面时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用以下代码从弹出页面更新父页面。该代码在Internet Explorer中运行良好,但在Chrome中运行不正常。请提出理由和可能的出路。



谢谢,

Atul



Hi All,

I am using following code for updating the parent page from pop up page. The code works fine in Internet explorer but not in Chrome. Pls suggest the reason and possible wayout.

Thanks,
Atul

Dim cstype As Type = Me.GetType()
    Dim cScript As String
    cScript = "<script language='javascript'> opener.location.href = '" & Session("varParentPage") + "'; </script>"
    ClientScript.RegisterStartupScript(cstype, "parentwindow", cScript)

推荐答案

因为你试图再次加载窗口,执行此操作:

Since you're trying to load the window again, do this:
cScript = "<script language="'javascript'"> window.location.href = '" & Session("varParentPage") + "'; </script>"



-KR


-KR


这篇关于在chrome中刷新父页面时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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