Click here to Skip to main content
12,827,807 members (47,129 online)
Rate this:
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 1:11am
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Member 8491154 20-Dec-12 0:02am
your third link solved my problem :) ty
Member 8491154 20-Dec-12 0:07am
other links are not opening
Surendra0x2 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 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 :)
Member 9581488 19-Dec-12 16:10pm
$("#<%# divCommentsMsg.CliendID %>").delay(3000).fadeOut(100);
should be
$("#<%= divCommentsMsg.CliendID %>").delay(3000).fadeOut(100);
Sk. Tajbir 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100