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 6839687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:44:57+00:00 2026-05-26T23:44:57+00:00

in an ASP.net/C# application. I am using the an update panel and a Placeholder

  • 0

in an ASP.net/C# application.
I am using the an update panel and a Placeholder inside it to dynamically load controls

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="LinkButton1" EventName="Click"/>
    </Triggers>
    <ContentTemplate>
        <asp:PlaceHolder ID="PlaceHolder1" runat="server">
        </asp:PlaceHolder>
    </ContentTemplate>
</asp:UpdatePanel>

When I click on the LinkButton1 I load a user control in the PlaceHolder:

protected void LinkButton1_Click(object sender, EventArgs e)
{
    PlaceHolder1.Controls.Clear();
    MyControl C;
    C = (MyControl1 )LoadControl("Controls/MyControl.ascx");
    PlaceHolder1.Controls.Add(C);
}

All the control I have are loadded correctly.

But the problem is this:

I have a control that uses Javascript and Jquery to create a drop down animation when I click on a div.
This control works correctly when loaded on a page by a Normal PostBack
But When I load it in the update panel using a partial post back, it loads but the javascript stops working (No more drop down animation and other stuff)

How can I make them work when loading the control via a partial postback?

  • 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-26T23:44:57+00:00Added an answer on May 26, 2026 at 11:44 pm

    I think your animation is being registered at a $(document).ready() event. Then it registers on the all divs, the specific animation.
    If you do a postback to your updatepanel, then the document ready event isn’t fired, so the animation is registered. You should do it yourself again after a postback in an updatepanel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET application using the Telerik Q1 2009 controls. I have a
Example scenario in an ASP.NET application using SQL Server membership provider : 1) a
What are the advantages and disadvantages of using Ajax update panels in ASP.NET application.
Hello, I am using update panel in my ASP.net page for partial page postbacks.
I'm using a asp.net slider inside an UpdatePanel within a page control . I
I'm having trouble deploying an ASP.Net application using Sql Server CE 4.0. I get
I want to test ASP.NET application using NUnit, but it seems WebConfigurationManager.ConnectionStrings collection is
In my ASP.NET application using InProc sessions, Session_End calls a static method in another
I developing ASP.NET application using a Swedish version of Windows XP and Visual studio
I'm in a ASP.NET application using Windows Authentication. I'm using HttpContext.Current.User.Identity.Name to get the

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.