Div不会在更新面板中淡出 [英] Div doesn't fade out in update panel

查看:59
本文介绍了Div不会在更新面板中淡出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用更新面板,在其中我有一个div,当转发器的项目命令被触发时,我会显示一条消息。 div在开始时显示为false。



I am using an Update Panel and inside it I have a div in which I show a message when the repeater''s Item Command is fired. The div is visible false in beginning.

<div id="divCommentsMsg" class="form_popup_Msg" visible="false"  runat="server">
        <asp:Label ID="lblCommentsMsg" runat="server"></asp:Label>
  </div>





它在转发器的ItemCommand中可见。为了淡出我使用:





It is made visible on repeater''s ItemCommand. To fade it out I use:

$("#ctl00_ContentPlaceHolder1_ctrlComments_divCommentsMsg").delay(3000).fadeOut(100);





div变得可见,但不会淡出。我该怎么办?



The div becomes visible but doesn''t fade out. What should I do ?

推荐答案

#ctl00_ContentPlaceHolder1_ctrlComments_divCommentsMsg )。延迟( 3000 )。fadeOut( 100 );
("#ctl00_ContentPlaceHolder1_ctrlComments_divCommentsMsg").delay(3000).fadeOut(100);





div变得可见,但不会淡出。我该怎么办?



The div becomes visible but doesn''t fade out. What should I do ?


在ItemCommand上发生了回发因此.Jquery无法运行..当我使用Jquery toogle时,我也遇到了这个prblm

。 ..



这里我得到了这个解决方案...



jquery toggle div在回发后消失(按钮点击) [ ^ ]



-------



http://dotnet.dzone.com/news/conflicts-between -aspnet-ajax-0 [ ^ ]

-----

HTT p://stackoverflow.com/questions/256195/jquery-document-ready-and-updatepanels [ ^ ]



-----



同样的问题 -



http://stackoverflow.com/questions/3815119/how-to-fadeout-a-label-inside-a- update-panel-with-jquery-in-asp-net [ ^ ]
On ItemCommand a Postback happens hence..Jquery is not working..i also faced this prblm
when i was using Jquery toogle...

here i got this solution...

jquery toggle div disappearing after postback(Button click)[^]

-------

http://dotnet.dzone.com/news/conflicts-between-aspnet-ajax-0[^]
-----
http://stackoverflow.com/questions/256195/jquery-document-ready-and-updatepanels[^]

-----

Same issue--

http://stackoverflow.com/questions/3815119/how-to-fadeout-a-label-inside-a-update-panel-with-jquery-in-asp-net[^]






请查看以下链接供您参考。

UpdatePanel打破JQuery脚本



这将显示如何获取路径用于更新面板。



谢谢
Hi,

Please view the following link for your reference.
UpdatePanel Breaks JQuery Script

this will show you the path how to use for Update panel.

Thanks


这篇关于Div不会在更新面板中淡出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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