asp.net tinybox父刷新 [英] asp.net tinybox parent refresh

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

问题描述


在我的a.aspx页面中,有一个链接可以使用tinybox在模式窗口中打开b.aspx页面.现在,在更改弹出页面(b.aspx)中的某些内容后,我想按下关闭按钮,然后关闭b.aspx并刷新我的父页面.
有人知道吗?

非常感谢.

Hi,
In my a.aspx page, there is a link to open b.aspx page in a modal window using tinybox. Now after I change something in my popup page (b.aspx) I want to push close button, and so close b.aspx and refresh my parent page.
Does anybody know about that?

Thanks a lot.

推荐答案

好,我已经解决了,如果有人需要,我会分享解决方案.

在a.aspx页面中,

Ok, I have solved it and if someone needs, I am sharing the solution.

in a.aspx page,

<script>
function refreshParentPage() {


(''#form1'').submit(); } </script>
(''#form1'').submit(); } </script>



在我的弹出页面b.aspx中,



and in my popup page, b.aspx,

<script>
function refreshParent() {
            parent.refreshParentPage();
        }
</script>




就是这样,之后,您可以将此功能分配给任何控件的onclick事件.




That is all, after that, you can assign this function to any controls onclick event.


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

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