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 an Updatepanel and Gridview inside it. <asp:UpdatePanel ID=uplPanel UpdateMode=Conditional runat=server OnLoad=uplPanel_Load> <ContentTemplate>
I have a asp:UpdatePanel with a asp:Button and a asp:TextBox : <asp:UpdatePanel ID=UpdatePanel1 runat=server>
I have controls inside a UpdatePanel like this <asp:ScriptManager ID=ScriptManager1 runat=server></asp:ScriptManager> <asp:UpdatePanel ID=UpdatePanel1 runat=server>
I have an updatepanel that has an Image button: <asp:ImageButton ID=btnChangeMedium OnClick=Change_Click runat=server />
aspx: <asp:UpdatePanel ID=updtEmpMaster runat=server> <ContentTemplate> <asp:FileUpload ID=tPhoto Height=23px runat=server /> <asp:Button ID=Button1 CssClass=btnImage runat=server
I have an application with star rating. Star rating inside repeater. <asp:Repeater ID=reptweet runat=server
I have the following code: <asp:FormView ID=PhotoFormView runat=server DataKeyNames=PhotoID DataSourceID=PhotoDataSource> <EmptyDataTemplate> No photo here.
I have an updatepanel in ASP.NET that does a partial page refresh. I've had
I have a aspx page that has a UpdatePanel and a asp timer. the
I have a page which contains an ASP UpdatePanel, and within the UpdatePanel, there

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.