弹出窗口时刷新父页面 [英] Refresh parent page when pop-up windows

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

问题描述

大家好,

我的问题是,当弹出窗口出现时,我的父数据将为空.

我正在使用javascript:

Hi everyone,

My problems is when pop-up windows appear , my parent data will be empty.

Im using javascript :

string support = Page.ResolveUrl("http://localhost/NanoGroceries.aspx" + "</script>";
Page.RegisterStartupScript(support, popupScript);



知道它是怎么发生的吗?香港专业教育学院试图使用response.redirect(Request.RawURL)刷新页面;它不起作用! X |



any idea how its happen? ive tried to refresh the page using response.redirect(Request.RawURL); it doesnt work! X|

推荐答案

ClientScript.RegisterStartupScript(typeof(System.String), "", "<SCRIPT type=''text/javascript''> window.open(''../Common/ReportViewer.aspx?ExpenseID=" + iExpenseID +  "''); </SCRIPT>  ");



尝试按上述方式使用.通常,这就是我弹出窗口且父页面具有数据的方式.



Try using as above. This is how i generally pop up a window and my parent page has data.


尝试以下操作:
Try this: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]


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

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