【发布时间】:2015-01-30 18:11:31
【问题描述】:
请帮帮我! 我有 1 个 apsx 页面和 2 个 uc。 从aspx可以打开radwindow包含uc 1,从uc 1可以打开uc 2。在aspx中,我有:
function CloseRadWindow()
{
if(GetRadWindowManager().getActiveWindow() == null)
{
refreshGridGiaoDuToan(); //this one refresh aspx page from uc 1
}
else
{
//i hope this one fresh uc1 after close uc2 but error
var wnd2 = GetRadWindowManager().getWindowByName("wndPopup2");
console.log(wnd2);
wnd2.get_contentFrame().contentWindow.refreshGridNhiemVu();
}
}
function refreshGridGiaoDuToan() {
$find("<%= pnGiaoNganSach.ClientID %>").ajaxRequest("SoGiao");
}
在 uc 1 上我有
function refreshGridNhiemVu() {
alert("va");
$find("<%= pnGiaoNganSachChiTiet.ClientID %>").ajaxRequest("RefreshNhiemVu");
}
但是当我关闭 uc 2 时,总是报错:get_contentFrame().contentWindow.refreshGridNhiemVu is not funtion...
所以我的问题是如何在关闭 uc2 后刷新(代码隐藏中的调用函数)uc 1? 请帮我!谢谢!
【问题讨论】: