ModalPopupExtender Animations OnShown

本文关键字:OnShown Animations ModalPopupExtender | 更新日期: 2023-09-27 17:57:14

我正在学习ASP .NET,遇到了模态弹出窗口扩展器。我发现模态弹出窗口可以制作动画,但我有一个关于 OnShow 和 OnShow 标签之间有什么区别的问题。谷歌搜索给了我

OnShowing – Called before the modal popup is shown.
OnShown – Called after the modal popup is shown.
OnHiding – Called before the modal popup is hidden.
OnHidden – Called after the modal popup is hidden.

但是,我对某些事情感到困惑。当我单击目标按钮并使用OnShowing时,没有动画效果。但是当我使用OnShowed时,动画是成功的。现在,在显示模态弹出窗口之前不是调用了OnShowing吗,所以当我单击目标按钮时,应该调用的是OnShowing函数。我想我在这里错过了一些东西。感谢您的帮助!

ModalPopupExtender Animations OnShown

你有没有检查过这个[AnimationExtender with ModalPopup] (http://forums.asp.net/p/1318051/2624063.aspx#2624063) ?他们为ModalPopUpExtender Animations提供了一个非常好的样本。它会让你真正了解你的关注。

希望对您有所帮助。

尝试通过在显示函数上添加return true;来返回 true