Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 368757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:51:16+00:00 2026-05-12T13:51:16+00:00

I have an UpdatePanel with count of elements on it and AnimationExtender: <asp:UpdatePanel ID=updPan2

  • 0

I have an UpdatePanel with count of elements on it and AnimationExtender:

<asp:UpdatePanel ID="updPan2" UpdateMode="Conditional" runat="server">
  <ContentTemplate>
  <div>
    <table>
      <tr>
        <td><div id="lblText1" runat="server">Text 1</div></td>
        <td><asp:LinkButton ID="lnkButton1" Text="Click" runat="server" OnClick="lnkButton1_Click" /></td>
      </tr>
      <tr>
        <td><div id="lblText2" runat="server">Text 2</div></td>
        <td><asp:LinkButton ID="lnkButton2" Text="Click" runat="server" OnClick="lnkButton2_Click" /></td>
      </tr>
      <tr>
        <td><div id="lblText3" runat="server">Text 3</div></td>
        <td><asp:LinkButton ID="lnkButton3" Text="Click" runat="server" OnClick="lnkButton3_Click" /></td>
      </tr>
    </table>

    <cc1:AnimationExtender ID="AnimationExtender1" TargetControlID="lnkButton1" runat="server">
      <Animations>
        <OnClick>
          <Color AnimationTarget="lblText1"
            Duration="5"
            StartValue="#FF0000"
            EndValue="#666666"
            Property="style"
            PropertyKey="backgroundColor" />
        </OnClick>
      </Animations>
    </cc1:AnimationExtender>    

    <asp:Button ID="btnSave" Text="Save" runat="server" />

  </div>
  </ContentTemplate>
</asp:UpdatePanel>

I want to do one thing.
When I click on lnkButton1 then element lblText1 should be animated for 5 seconds
When I click on lnkButton2 then element lblText2 should be animated for 5 seconds
When I click on lnkButton3 then element lblText3 should be animated for 5 seconds

And when I click btnSave all elements (lblText1, lblText2, lblText3) should be animated together for 5 seconds. But when I’m using AnimationExtender with OnClick animation all of the elements animates onli for less then 1 second, even if I set Duration for 5 second.
How can I make such thing?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:51:16+00:00Added an answer on May 12, 2026 at 1:51 pm

    I ound solution of this problem. I’ve added update panels around elements. And used UpdatePanelAnimationExtender1 for each of panels and one for all elements in paralel execution.

    Here is code solving this problem.

    <asp:UpdatePanel ID="updPan2" UpdateMode="Conditional" runat="server">
      <ContentTemplate>
      <div style="border:solid 1px #000;">
        <p>
          <%= DateTime.Now.ToString("HH:mm:ss") %>
        </p>  
    
        <asp:UpdatePanel ID="upP1" UpdateMode="Conditional" runat="server">
          <ContentTemplate>
            <table>
              <tr>
                <td><div id="lblText1" runat="server">Text 1</div></td>
                <td><asp:LinkButton ID="lnkButton1" Text="Click" runat="server" OnClick="lnkButton1_Click" /></td>
              </tr>
            </table>        
          </ContentTemplate>
        </asp:UpdatePanel>
        <cc1:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1" TargetControlID="upP1" runat="server">
          <Animations>
            <OnUpdated>
              <Color AnimationTarget="lblText1"
                Duration="2"
                StartValue="#FF0000"
                EndValue="#666666"
                Property="style"
                PropertyKey="backgroundColor" />
            </OnUpdated>
          </Animations>
        </cc1:UpdatePanelAnimationExtender>
    
        <asp:UpdatePanel ID="upP2" UpdateMode="Conditional" runat="server">
          <ContentTemplate>
            <table>
              <tr>
                <td><div id="lblText2" runat="server">Text 2</div></td>
                <td><asp:LinkButton ID="lnkButton2" Text="Click" runat="server" OnClick="lnkButton2_Click" /></td>
              </tr>
            </table>        
          </ContentTemplate>
        </asp:UpdatePanel>
        <cc1:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender2" TargetControlID="upP2" runat="server">
          <Animations>
            <OnUpdated>
              <Color AnimationTarget="lblText2"
                Duration="2"
                StartValue="#FF0000"
                EndValue="#666666"
                Property="style"
                PropertyKey="backgroundColor" />
            </OnUpdated>
          </Animations>
        </cc1:UpdatePanelAnimationExtender>
    
        <asp:UpdatePanel ID="upP3" UpdateMode="Conditional" runat="server">
          <ContentTemplate>
            <table>
              <tr>
                <td><div id="lblText3" runat="server">Text 3</div></td>
                <td><asp:LinkButton ID="lnkButton3" Text="Click" runat="server" OnClick="lnkButton3_Click" /></td>
              </tr>
            </table>        
          </ContentTemplate>
        </asp:UpdatePanel>
        <cc1:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender3" TargetControlID="upP3" runat="server">
          <Animations>
            <OnUpdated>
              <Color AnimationTarget="lblText3"
                Duration="2"
                StartValue="#FF0000"
                EndValue="#666666"
                Property="style"
                PropertyKey="backgroundColor" />
            </OnUpdated>
          </Animations>
        </cc1:UpdatePanelAnimationExtender>
    
    
        <asp:Button ID="btnSave" Text="Save" runat="server" />
    
      </div>
      </ContentTemplate>
    </asp:UpdatePanel>
    
    <cc1:UpdatePanelAnimationExtender ID="upaPan1" TargetControlID="updPan2" runat="server">
      <Animations>
        <OnUpdated>
          <Parallel>
            <Color AnimationTarget="lblText1"
              Duration="2"
              StartValue="#FF0000"
              EndValue="#666666"
              Property="style"
              PropertyKey="backgroundColor" />
            <Color AnimationTarget="lblText2"
              Duration="2"
              StartValue="#FF0000"
              EndValue="#666666"
              Property="style"
              PropertyKey="backgroundColor" />
            <Color AnimationTarget="lblText3"
              Duration="2"
              StartValue="#FF0000"
              EndValue="#666666"
              Property="style"
              PropertyKey="backgroundColor" />
          </Parallel>
        </OnUpdated>
      </Animations>
    </cc1:UpdatePanelAnimationExtender>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a server dropdownlist in an Ajax updatepanel. When I use the mouse
I have an updatepanel which doesn't work. My whole code: <%@ Page Language=C# MasterPageFile=~/Master.Master
I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed
I have a menu control inside of an updatepanel. When I hover over a
I have a button inside an updatepanel. I have a PopupControlExtender linked to the
I have Datalist that is inside an updatepanel and it is in panel in
I have a gridview that is within an updatepanel for a modal popup I
I have a GridView inside an UpdatePanel that is populated when a search is
I have a simple page with my ScriptManager and my UpdatePanel , and my
I have a panel on an aspx page which contains an UpdatePanel. This panel

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.