asp.net的jQuery的fancybox - >通过codebehind关闭的fancybox [英] asp.net jquery fancybox -> Close fancybox via codebehind

查看:144
本文介绍了asp.net的jQuery的fancybox - >通过codebehind关闭的fancybox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,我已经看到了这个解决方案通过点击一个按钮关闭的fancybox。

Ok, so I have seen this solution to closing a fancybox via a button click. :

$ fancybox.close();

$.fancybox.close();

有没有一种办法,任何一个知道的,一个的fancybox可以从codebehind被关闭。

Is there a way that any one is aware of that a fancybox can be closed from the codebehind.

我能想到的唯一的事情是注册一个脚本,因为在我的情况,我需要在我的codebehind在一个按钮单击事件进行了一堆逻辑,然后一旦完成接近的fancybox。我已经找遍了,并一直无法找到一个解决方案。

The only thing I can think of is registering a script, because in my situation I need to perform a bunch of logic in my codebehind upon a button click event and then once that has finished close the fancybox. I have searched all over and have been unable to find a solution.

如果有人已经找到了一种方式来做到这一点,请让我知道。

If anyone has found a way to do this please let me know.

感谢。

推荐答案

尝试:

ScriptManager.RegisterStartupScript(this, GetType(), "" , "$.fancybox.close();", true);

这篇关于asp.net的jQuery的fancybox - >通过codebehind关闭的fancybox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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