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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:33:51+00:00 2026-05-19T14:33:51+00:00

Inside usercontrol I have updatepanelanimationextender, when I add this control to a webpage I

  • 0

Inside usercontrol I have updatepanelanimationextender, when I add this control to a webpage I want to pass updatepanel’s Id as parameter to control’s property.

Usercontrol:

public partial class Controls_UpdateProgress : System.Web.UI.UserControl
{ 
    public string UpdatePanelID { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {     
        if (!IsPostBack)
        {
            UpdatePanelAnimationExtender1.TargetControlID = UpdatePanelID;              
        }

    }
}

<cc1:updatepanelanimationextender id="UpdatePanelAnimationExtender1" runat="server" >
            <Animations>
               <OnUpdating>
                   <Parallel duration="0" >        
                       <ScriptAction Script="onUpdating();" />  
                   </Parallel>
               </OnUpdating>
                 <OnUpdated>
                  <Parallel duration="0">             
                     <ScriptAction  Script="onUpdated();"  /> 
                  </Parallel> 
               </OnUpdated>
            </Animations>
        </cc1:updatepanelanimationextender>

WebPage: UpdatePanel1 is an id of the updatepanel.

<uc1:UpdateProgress ID="UpdateProgress1" runat="server" UpdatePanelID="UpdatePanel1"    />

I get error:

The TargetControlID of
‘UpdatePanelAnimationExtender1’ is not
valid. The value cannot be null or
empty.

  • 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-19T14:33:52+00:00Added an answer on May 19, 2026 at 2:33 pm

    The AJAX control extenders do not store their TargetControlID in the ViewState (I checked in System.Web.Extensions 3.5 with Reflector and that property only gets/sets a private member). Thus, the value you stored is lost on postback.

    You’ll have to store the value in every request:

    protected void Page_Load(object sender, EventArgs e)
    {     
        UpdatePanelAnimationExtender1.TargetControlID = UpdatePanelID;              
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a usercontrol loaded inside a canvas; this usercontrol on default have visibility
I have a UserControl that I want to add at runtime to my current
I have a button inside my UserControl. I have three instances of this UserControl
I have a MasterPage, with my Usercontrol inside a div. I can set visible=false
Inside my page, I have the following: <aspe:UpdatePanel runat=server ID=updatePanel> <ContentTemplate> <local:KeywordSelector runat=server ID=ksKeywords
I have defined a textbox with x:Name=txtMyTextBox inside UserControl called MyView. I've noticed that
Inside VS2005, our whole programming staff gets this error message sporadically and it is
I have table inside a div tab. The table has 40 rows in it
I am inside of... public class bgchange : IMapServerDropDownBoxAction { void IServerAction.ServerAction(ToolbarItemInfo info) {
I have Window with UserControl. I subscribed for OnKeyUp event but it does not

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.