Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
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>
It is made visible on repeater's ItemCommand. To fade it out I use:
The div becomes visible but doesn't fade out. What should I do ?
Posted 19-Dec-12 0:11am
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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)[^]
Same issue--[^]
Member 8491154 at 20-Dec-12 0:02am
your third link solved my problem :) ty
Member 8491154 at 20-Dec-12 0:07am
other links are not opening
Surendra0x2 at 20-Dec-12 4:33am
My pleasure bro :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please view the following link for your reference.
UpdatePanel Breaks JQuery Script
this will show you the path how to use for Update panel.
Member 8491154 at 19-Dec-12 6:43am
can you please provide a code snippet for my question on how do i proceed?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can do two things,
First, you can get the divCommentsMsg div by following way and fade it out:
$("#<%# divCommentsMsg.CliendID %>").delay(3000).fadeOut(100);
Second, you can get that div by its class. Make sure class of that div is not used anywhere else.
I hope this will help.
Thanks Smile | :)
Member 9581488 at 19-Dec-12 16:10pm
$("#<%# divCommentsMsg.CliendID %>").delay(3000).fadeOut(100); should be $("#<%= divCommentsMsg.CliendID %>").delay(3000).fadeOut(100);
Sk. Tajbir at 19-Dec-12 16:18pm
Thats great..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
0 Sergey Alexandrovich Kryukov 680
1 OriginalGriff 379
2 Manas Bhardwaj 350
3 Abhinav S 293
4 Sampath Lokuge 245
0 Sergey Alexandrovich Kryukov 7,647
1 OriginalGriff 4,287
2 Peter Leow 3,681
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid