关闭FancyBox后如何刷新活动页面。 [英] how to Refresh active page after closing FancyBox.

查看:172
本文介绍了关闭FancyBox后如何刷新活动页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个使用c#的asp.net网络应用程序。



In我的一些asp.net页面我在转发器中使用fancybox(使用fancybox编辑/查看记录)。



现在的问题是,更新记录后关闭fancybox然后我想

刷新那个活跃的页面。



例如。如果我打开Defaul.aspx页面,在这里我有一个转发器,在转发器上编辑/查看按钮我有一个奇特的盒子。一旦查看/编辑了记录,奇特的框将被关闭,然后我想在Default.aspx页面上刷新/重新绑定转发器。



可以任何一个请帮帮我..







谢谢

Hi guys,

I have a asp.net web application using c#.

In some of my asp.net pages i'm using fancybox in repeater(for edit/view records using fancybox).

Now the problem is, after updating the record and closing the fancybox then i want to
refresh that page which gets active.

For eg. if i open Defaul.aspx page, in this i have a repeater, in repeater on edit/view button i have a fancy box. Once the record is viewed/edited the fancy box will get closed and then i want to refresh/re-Bind the repeater on Default.aspx page.

Can any one please help me..



Thanks

推荐答案

hi
尝试其中一个

afterClose或onClose



hi try one of them
"afterClose" or "onClose"


.fancybox)。fancybox ({
afterClose: function (){
parent。 location .reload( true );
}
});
(".fancybox").fancybox({ afterClose: function () { parent.location.reload(true); } });





干杯:)



Cheers :)


这篇关于关闭FancyBox后如何刷新活动页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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